You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the issue is the code uses startDate.fromNow() to calculate the date offset, but fromNow() uses wall clock time (hours/minutes) which causes date rounding..
the code needs to be changed to use startDate.from(moment().format("MMDDYYY"))
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").from(moment().format("YYYYMMDD")));
to use start of day comparisons..
will attach a PR with the changes.
The text was updated successfully, but these errors were encountered:
sdetweil
changed the title
default calendar incorrectly calculates offsets for full day events.
default calendar incorrectly calculates offsets for full day events. in format=relative
Feb 14, 2019
Please only submit reproducible issues.
the issue is the code uses startDate.fromNow() to calculate the date offset, but fromNow() uses wall clock time (hours/minutes) which causes date rounding..
the code needs to be changed to use startDate.from(moment().format("MMDDYYY"))
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").from(moment().format("YYYYMMDD")));
to use start of day comparisons..
will attach a PR with the changes.
The text was updated successfully, but these errors were encountered: