[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] Calendar bug? or is it supposed to do this
From: |
Chris Weiss |
Subject: |
Re: [Phpgroupware-developers] Calendar bug? or is it supposed to do this..... |
Date: |
Thu, 05 Dec 2002 15:10:12 +0000 |
Tom Gasaway (address@hidden) wrote*:
>
>I had this problem as well until I changed the following line in function
>datetime
>in phpgwapi/inc/class.datetime.inc.php:
> $this->users_localtime = $this->gmtnow + $this->tz_offset;
>to
> $this->users_localtime = time() - $this->tz_offset;
>
>This works for me because I made an assumption that the time zone offset in
>each
>users preference is used to indicate the offset for that user from the servers
>time
>not the offset from gmtime.
This assumption is warantted since it says "Time zone offset" with a list of
hours
and not simply "Time Zone" with a list of zones. So unless the prefs setting is
going to change in stable, which will cause all sorts of havoc, the datetime
code
needs to change.