Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 UTC used in ical causes incorrect blocks in summer

open-works-for-me
nobody
None
5
2012-02-02
2012-01-24
Anonymous
No

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.

Thanks

Discussion

  • 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.

     
    • status: open --> open-accepted
     
  • 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

     
    • status: open-accepted --> open-works-for-me