[Tickets #9989] Re: mothersday at wrong date in calender
bugs at horde.org
bugs at horde.org
Thu Jun 2 13:48:49 UTC 2011
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/9989
------------------------------------------------------------------------------
Ticket | 9989
Aktualisiert Von | michael at bigmichi1.de
Zusammenfassung | mothersday at wrong date in calender
Warteschlange | Kronolith
Version | Git master
Typ | Bug
Status | Feedback
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
michael at bigmichi1.de (2011-06-02 13:48) hat geschrieben:
today i did some more debugging because fathersday is also at the
wrong date 3.6.2011 instead of 2.6.2011.
i noticed that it has something to do with the timezone that is
configured in php.ini "date.timezone = Europe/Berlin" and timezone set
in linux /etc/localtime points also to Europe/Berlin
fathersday for example is stored in a Date object with the following values:
year = 2011
month = 06
day = 02
hour = 0
minute = 0
second = 0
partsecond = 0
on_standardyear = 2011
on_standardmonth = 06
on_standardday = 02
on_standardhour = 23
on_standardminute = 0
on_standardsecond = 0
on_standardpartsecond = 0
tz = Europe/Berlin
the interesting thing is that when i call $dhEvent->_date->getDate(4)
the result is 20110602000000
when i call $dhEvent->_date->getDate(5) the result is 1307052000 which
is 20110603000000
my suggestion is not to call getTime() here "new
Horde_Date($dhEvent->_date->getTime());" but i haven't a idea what to
call
More information about the bugs
mailing list