File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,23 @@ function handleEventData(events) {
187
187
188
188
events . forEach ( event => {
189
189
let startDate = new Date ( event . start ) ; // convert ISO 8601 -> Date object
190
+
191
+ // FIXME: Hotfix for time zone bug in HM
192
+ // needs to return GMT to us, but it is translating to EST for some reason
193
+ // We want HM to be the canonical time for now, so 12pm in HM
194
+ startDate . setHours ( startDate . getHours ( ) - 5 ) ;
195
+
190
196
let finishDate = undefined ;
191
197
192
198
let dateString = convertDate ( startDate ) ;
193
199
if ( event . finish ) { // finish === null for instantaneous events
194
200
finishDate = new Date ( event . finish ) ;
201
+
202
+ // FIXME: Hotfix for time zone bug in HM
203
+ // needs to return GMT to us, but it is translating to EST for some reason
204
+ // We want HM to be the canonical time for now, so 12pm in HM
205
+ finishDate . setHours ( finishDate . getHours ( ) - 5 ) ;
206
+
195
207
let finishString = convertDate ( finishDate ) ;
196
208
if ( dateString . slice ( - 2 ) === finishString . slice ( - 2 ) ) { // hide "am/pm" of first time if both are identical
197
209
dateString = dateString . slice ( 0 , - 2 ) ;
You can’t perform that action at this time.
0 commit comments