adjust dev meeting time for daylight savings
This commit is contained in:
parent
600400cfda
commit
050f1a3387
@ -111,10 +111,12 @@ var eventInfoLoad = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function updateDate(eventDate) {
|
function updateDate(eventDate) {
|
||||||
$('.month').append(moment(eventDate).format('MMMM'));
|
const eventDateMoment = moment(eventDate);
|
||||||
$('.day').append(moment(eventDate).format('DD'));
|
const offset = eventDateMoment.isDST() ? -7 : -8;
|
||||||
$('.calendar-cta h3 strong:first-child()').append(moment(eventDate).format('dddd, MMMM Do'));
|
$('.month').append(eventDateMoment.format('MMMM'));
|
||||||
$('.calendar-cta h3 strong:last-child()').append(`${moment(eventDate).utcOffset(-8).format('h a')} PT`);
|
$('.day').append(eventDateMoment.format('DD'));
|
||||||
|
$('.calendar-cta h3 strong:first-child()').append(eventDateMoment.format('dddd, MMMM Do'));
|
||||||
|
$('.calendar-cta h3 strong:last-child()').append(`${eventDateMoment.utcOffset(offset).format('h a')} PT`);
|
||||||
}
|
}
|
||||||
|
|
||||||
eventRequest.send();
|
eventRequest.send();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user