#2695 GMT Offset / Published ical problem

open
5
2013-06-25
2012-09-26
Disco_Dave
No

The (shared) linux host server I've installed on is hosted in the UK. The timezone on the server is set to "Europe/London". Webcalendar admin settings show an offset to GMT of -4. When my calendar syncs to my phone, all appointments are inserted on the phone 5 hours later than they should be. I've checked my System settings in Webcalendar which show a setting of Europe/London and also on my personal preferences as Europe/London.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-16

    I think timezone spec needs to be added in the exported ICS - example
    BEGIN:VTIMEZONE
    TZID:America/Montreal
    END:VTIMEZONE

     
  • Disco_Dave

    Disco_Dave - 2012-10-16

    I've got a workaround at the moment, but I don't think it's permanant...

    within "includes/functions.php"

    I've commented lines 3815 & 3816

    //if ( function_exists ( "date_default_timezone_set" ) )
    //date_default_timezone_set ( $GLOBALS['TIMEZONE'] );

    With that done, webcalendar follows the servers timezone. If those lines aren't remarked, then it always says -4h GMT, even though the server is set to GMT +1.

    Hope that helps for the next version.

     
  • gun7

    gun7 - 2013-02-17

    I followed the workaround as mentioned above.
    Works fine for me, thank you.
    Version v1.2.5
    29 Feb 2012
    PS
    I didn't find any variables in the database as mentioned in other cases
    webcal_config

    no SERVER_TIMEZONE
    no TIMEZONE

     
    Last edit: gun7 2013-02-17
  • Janvl

    Janvl - 2013-06-25

    Thanks for the workaround that did it for me too.

    I have taken a look at the database with phpmyadmin and I found that table webcal_timezones is completely empty, that could explain why we always get -4 hours.

    Kind regards,
    Jan

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks