Skip to content

Commit

Permalink
Use corrected map time to display FME
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalD96 committed Jul 20, 2023
1 parent aefbe53 commit 3332ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/fme.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const FME = {
*/
getEventObject: function (d, frequency) {
const eventTime = d[0];
const now = Date.now();
const now = MapBase.mapTime().valueOf();
const oneDay = this.minutesToMilliseconds(24 * 60);
let dateTime = this.getDateTime(now, eventTime);
let eta = dateTime - now;
Expand Down

0 comments on commit 3332ef2

Please sign in to comment.