[Typo3-dev] Dates in non-UNIX format

Kasper Skårhøj kasper2004 at typo3.com
Fri Nov 26 13:39:01 CET 2004


Hi List,


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?


Some issues:
- submission of dates (like starttime and endtime) in the backend
expects to be done in the servers timezone (in order to really represent
the timestamp at midnight of the date entered). 


Where will the timezone compensation be used/needed? Please give some
examples of actual situations you have right now with TYPO3.

Also: I can clearly imagine a calender extension using timezones - but
isn't that a question of how the extension handles it, less how the
backend does?


- kasper





More information about the TYPO3-dev mailing list