[TYPO3-core] RFC #7626: Date/time handling is completely broken in 4.2
Steffen Kamper
steffen at sk-typo3.de
Mon Feb 25 17:03:07 CET 2008
"Dmitry Dulepov [typo3]" <dmitry at typo3.org> schrieb im Newsbeitrag
news:mailman.1.1203953565.13653.typo3-team-core at lists.netfielders.de...
> Hi!
>
> Ernesto Baschny [cron IT] wrote:
>> Where are you seeing this? We always subtract the TZoffset in JavaScript
>> (using "-xxx.getTimezoneOffset()*60"). So the date the client sends to
>> the server should be UTC.
>
> May be it should but it does not. getTimezoneOffset() returns negative
> value for positive time zones. I.e. it returns -2 for UTC+2. So
> substracting it you add this value to local time thus getting
> UTC+2*TZoffset. Easy to see with FireBug.
>
this.lastDate - theTime.getTimezoneOffset()
UTC +2 : theTime.getTimezoneOffset() = -120
so UTC - - 120 = UTC + 120
vg Steffen
More information about the TYPO3-team-core
mailing list