[TYPO3] Typo3 4.2 date field copy problem (e.g. in tt_news)

Klaus Hinum k_hinum at hotmail.com
Mon Apr 28 15:17:06 CEST 2008


Dmitry Dulepov [typo3] schrieb:
> Klaus Hinum wrote:
>> we just encountered the following thing (which should be 4.2 related 
>> as we didn't notice eralier).
>>
>> If we copy an item from our extension or in tt_news in list view (a 
>> review item with a date of the review) then the date is declined for 
>> two hours in the copied item. This is very strange (not the crdate 
>> field but an own field of type date).
>>
>> E.g.
>> uid, text, date
>> 1, abc, 01.01.2008
>> 2, copied_abc, 31.12.2007
>>
>> Very strange, why does typo3 alter the date field on copying the 
>> element in list view? Is it a bug that should be reported
> 
> Do you have proper timezone settings in PHP? PHP5 requires correct 
> timezone settings if you want it to return proper dates. If you do not 
> have proper settings, it will assume you are in GMT.
> 

I only find hints how to set the timezone in the PHP script, where do I 
have to set the timezone of PHP 5?

To alter the date, the system has to "see" to different timezones. Does 
PHP take a timezone from mysql?

Greetings
Klaus


More information about the TYPO3-english mailing list