#1 UTC used in ical causes incorrect blocks in summer


A member of staff has noted that when setting up blocks for the year, and exporting them now, the summer times are off by an hour as the ical times are all UTC and never change.

I recreated this issue by setting up a block on the 1st of every month for a year for 9am-10am. The ical event is specified for 9am-10am UTC for every month of the year, which will be wrong come summer time.

We're using version 4.0.1.

I've checked block settings and the params file, but did not see anything that could change the ical output. I've looked at the readmes but did not see anything explaining how the right timezone is selected. I was not involved in the installation of the system, so perhaps I've overlooked some settings, but as it stands, I believe this is a bug.



  • Serge Goldstein

    Serge Goldstein - 2012-01-25

    WASS stores dates/time as local time, and converts them to UTC when generating iCal streams. Given the uncertainty about daylight savings start/end dates in various locales (e.g., Arizona), I am not sure how to fix this problem. Should I output the date-times as local time plus a local timezone specification? Will all calendar applications understand (or honor) that? Let me know what you think WASS should do, and I will modify the code accordingly.

  • Serge Goldstein

    Serge Goldstein - 2012-01-25
    • status: open --> open-accepted
  • Serge Goldstein

    Serge Goldstein - 2012-02-02

    WASS uses the gmdate PHP function to convert local datetimes to UTC datetimes. I just created a recurring block in WASS that runs on Mondays from 9 to 10 am from Feb. through May. I then had WASS generate an iCal stream for this recurring block. The UTC times were set to 1400 up until mid-March, when they changed to 1300 (accounting for daylight savings). Thus the gmdate function appears to be doing the right thing. Can you please post details about this bug (specific dates/times, and the iCal stream generated by WASS)? Thanks,

  • Serge Goldstein

    Serge Goldstein - 2012-02-02
    • status: open-accepted --> open-works-for-me

Log in to post a comment.