File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,11 +187,23 @@ function handleEventData(events) {
187187
188188 events . forEach ( event => {
189189 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+
190196 let finishDate = undefined ;
191197
192198 let dateString = convertDate ( startDate ) ;
193199 if ( event . finish ) { // finish === null for instantaneous events
194200 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+
195207 let finishString = convertDate ( finishDate ) ;
196208 if ( dateString . slice ( - 2 ) === finishString . slice ( - 2 ) ) { // hide "am/pm" of first time if both are identical
197209 dateString = dateString . slice ( 0 , - 2 ) ;
You can’t perform that action at this time.
0 commit comments