[TYPO3-core] RFC #7626: Date/time handling is completely broken in 4.2

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Feb 25 16:32:45 CET 2008


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.

> I suppose that part was not even submitted by myself. It was send to 
> review and is therefore in the list, but I forgot to submit the tcemain 
> part of the patch, because I selected the files individually for 
> submitting (because I had other changes in my typo3_src) and the 
> t3lib_tcemain file was missing in my list.

I saw it in the patch but not in the code.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-team-core mailing list