[Typo3-dev] Dates in non-UNIX format
    Dimitri Tarassenko 
    mitka at mitka.us
       
    Fri Nov 26 16:38:26 CET 2004
    
    
  
Kasper,
Kasper Skårhøj wrote:
> I have now added this in the TYPO3_CONF_VARS['SYS'] array:
> 
> 
> 		'serverTimeZone' => 1					// Integer, GMT offset of servers time (from
> time()). Default is "1" which is "GMT+1" (central european time). This
> value can be used in extensions that are GMT aware and wants to convert
> times to/from other timezones.
> 
> 
> As far as I can see this will tell applications the "absolute time
> offset" that all timestamps must eventually have when stored in the
> database. From that offset you can calculate to/from a US Timezone etc.
> 
> Is this sufficient?
This is geographical discrimination. I absolutely object to this 
Euro-centrism and demand that it be changed to:
$TYPO3_CONF_VARS['SYS']['serverTimeZone'] = (date('Z')/3600);
:)
Also, it would probably be better to have this parameter in seconds, not 
in hours - this way it can be directly added to/subtracted from UNIX 
timestamps.
D.
    
    
More information about the TYPO3-dev
mailing list