Re: timezone problem in Calendar Views
Tomi Orava <[email protected]>
| Newsgroups | gmane.comp.horde.kronolith |
|---|---|
| Message-ID | <[email protected]> |
>> I currently suspect that as ubuntu is patching its php5 with the patch >> "use_system_timezone.patch", it might somehow mess up the times that are >> used in storing the events into mysql db. Just a followup, my problems seem to have been caused by an old & orphan copy of autoloader, installed long time ago before switching into GIT version. After cleaning up this copy, also the timezones started working in a normal way again. Tomi O. > no, I use Ubuntu 12.04LTS, PHP Version 5.3.10. In Ubuntu 12.04 there > is no default date.timezone setting in php.ini and PHP does not pick > up the systems timezone from /etc/timezone either, leaving php > timezone undefined by default. Could be 14.xx behaves in the same > way, haven't tested that yet. > > Now the underlying problem is that when Nag is disabled, Kronolith > ignores the timezone setting in the user preferences. Instead it > will fall back to the php timezone. But if no timezone is defined in > php either Kronolith falls back to UTC as a last resort. > > Without a timezone defined, new events will be stored with event > times exactly as entered. The same happens to existing events that > are edited. As a result all those events are stored with the wrong > times and will need manual correction in the database after > resolving the issue. If you know when Nag was disabled you can use > the event_modified field in kronolith_events to determine which > events in the database need correction. > > My workaround is to manually set date.timezone to my local timezone > in php.ini. All my users are in the same timezone so it is not an > issue that they can't define their own timezone in their preferences > anymore. > > To reproduce: > - set $conf['resource']['params']['utc'] = true in kronolith/config/conf.php > - disable Nag (using registry.local.php in horde/config) > - log in and open the calendar. All events now appear in the php > timezone, or when no php timezone is set, in UTC. Changing the user > timezone in the user global prefs has no effect anymore. > > > >> >> >> -- >> kronolith mailing list >> Frequently Asked Questions: http://wiki.horde.org/FAQ >> To unsubscribe, mail: [email protected] > > > > -- > kronolith mailing list > Frequently Asked Questions: http://wiki.horde.org/FAQ > To unsubscribe, mail: [email protected] -- kronolith mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]