Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
default calendar incorrectly calculates offsets for full day events. in format=relative #1572
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")));
will attach a PR with the changes.