[TYPO3-dev] stdwrap->strftime and timezone

David Nyffenegger david at nyffis.ch
Thu Mar 30 23:00:30 CEST 2006


Hi all

I've made a table with a time field (TCA "config" => "eval" => "time"). 
The record listing in the backend (list module) shows the same time 
which was entered in, e.g. "20:00". In the frontend, I use the strftime 
from the stdwrap function to render the time. Now "21:00" is displayed. 
I have setup the timezone to 1 (GMT + 1 in the localconf.php, 
$TYPO3_CONF_VARS['SYS']['serverTimeZone'] = 1;)
When using the SQL (FROM_UNIXTIME function), I see also "21:00".
Is it possible, that I first have to convert DB time and date values 
according to the serverTimeZone settings before rendering?
I shortly took a look to find how the backend does the rendering of time 
information from the DB, but I didn't found anything...

Thanks & regards
David




More information about the TYPO3-dev mailing list