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

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Feb 25 18:16:11 CET 2008


Steffen Kamper wrote: on 25.02.2008 17:47:

>>> Hi Ernesto,
>>>
>>> we really missed you with this discussion :-)
>>>
>>> one point we found is that timezone/100 doesn't work with half timeuones
>> True. We should switch all "(date('O')/100)*60*60" to "date('Z')".
>>
>> And as I found out Windows based PHP doesn't know any "non-standard" 
>> timezone (e.g. +0430 they will always return "+0000" and "0"). So running 
>> a Windows server on one of those bizarre timezones will get you in trouble 
>> either way you do it. Under Unix-PHP it looks ok (tested with Debian 
>> Linux).
> 
> i looked at, and with a TZ of +0530
> date('O') returns 0
> date('Z') returns 0
> 
> so i don't see a possibility here.

If you mean "Windows", that is what I have written. Not working on every 
half-TZ and even on some bizarre full-hour-TZ. e.g. "GMT+08:00 Taipeh" = 
'+0000' in PHP 5.2.5/Win32, etc.

Works like a charm under Unix.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list