ics for client has wrong time when using timezones

Issue #640 resolved
Valentina R created an issue

To reproduce, the website on Vienna time with the product at 1 am, client selected Kiev time which is 2 am instead.

The email to client says 2 am (Kiev), but the ICS file attached to it has DTSTART:20200320T010000.

I tried importing into a gCal with Vienna time and I get 1am, which is correct. But when I tried importing in Kiev timezone gCal, it still said 1am, which is wrong as it should be 2am.

Reported here.

Ideally, the ICS file should have the time in a universal time so that no matter which timezone your personal calendar has, it saves the right time. Is that possible?

Comments (15)

  1. Valentina R reporter

    I tested by setting the WP timezone to Denver (US).
    Then I booked an appointment in Denver timezone at 10 am. In Gmail, the ICS says 12:00 CEST, which is wrong. It should be 18:00 instead.

    Then I tested with timezone (as client) Auckland (New Zeland) at 04:00 and the ICS says 12:00, but it should be 18:00 instead:

    Reported here.

  2. Željan Topić

    I’ll check this again, but what happens if you import the ics to Google calendar. Does it import in correct time zone.

  3. Valentina R reporter

    This is from Appointment #22446:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//BookingWP//WooCommerce Appointments 4.9.3//EN
    CALSCALE:GREGORIAN
    X-WR-CALNAME:Fable - Children Kindergarten WordPress Theme
    X-ORIGINAL-URL:https://fable.valentina-rakar.com/
    X-WR-CALDESC:Appointments from Fable - Children Kindergarten WordPress Theme
    X-WR-TIMEZONE:America/Denver
    BEGIN:VEVENT
    DTSTART;TZID=/America/Denver:20200415T100000Z
    DTEND;TZID=/America/Denver:20200415T110000Z
    UID:wc_appointments_22446
    DTSTAMP:20200414T091610Z
    LOCATION:
    DESCRIPTION:Staff: WP gCal\n\n
    URL;VALUE=URI:https://fable.valentina-rakar.com/my-account/view-order/22447/
    SUMMARY:#22446 - timezone and staff
    ORGANIZER;CN="Fable - Children Kindergarten WordPress Theme":redacted-email@gmail.com
    END:VEVENT
    END:VCALENDAR
    

  4. Log in to comment