add2cal / add-to-calendar-button

Reliably create beautiful Add to Calendar Buttons, where people can add events to their calendars. Without the hustle and unsupported cases.
https://add-to-calendar-button.com
Other
1.36k stars 114 forks source link

[Bug]: wrong date displayed in the event series preview if timezone is west of UTC #593

Closed ets-ann closed 6 months ago

ets-ann commented 6 months ago

What happened?

Wrong date is displayed in the event series preview if the timezone of the browser/device is west of UTC, e.g. PST.

How to reproduce?

Prerequisites:

  1. Create an event series using dates. Please, see code example
  2. The events must be all day events, so there is only startDate.
  3. The timezone of the device is negative to UTC, e.g. PST.

Steps to reproduce:

  1. Click Add to Calendar.
  2. Click Google or Yahoo, so 'This is an event series' pop up is open.
  3. Compare displayed dates in the pop up and actual dates in startDate.

Actual result: the dates are not the same.

Expected result: the dates in the pop up and in startDate should be the same as it is an all day event, and it should not depend on the timezone of the user/device.

Screenshots & more

event-series-bug

System & Environment

  1. Device and OS: all
  2. Browser: Chrome, Safari
  3. Version number of the application: all versions
  4. How you include the script:
jekuer commented 6 months ago

Thanks. Fixed with latest patch release! :)