[TYPO3-dev] Time issues - a proposal
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Sat Oct 27 15:15:16 CEST 2007
Dmitry Dulepov [typo3] schrieb:
> Hi Masi!
>
>> And I want a new option to store all timestamps in UTC/GMT. Therefor
>> t3lib_div gets two new functions.
>
> Fine with me too with condition that you keep local time as default
> option (for compatibility reasons).
That's why we have the $GLOBALS['TYPO3_CONF_VAR']['SYS']['useUTC'] switch.
>
> What about shorter versions:
>
> function getTime() {
> return ($GLOBALS['TYPO3_CONF_VAR']['SYS']['useUTC'] ? gmtime() :
> time());
> }
> function makeTime() {
> $func = ($GLOBALS['TYPO3_CONF_VAR']['SYS']['useUTC'] ? 'gmmktime' :
> 'mktime');
> return call_user_func_array($func, func_get_args());
> }
IMHO purely cosmetic. Are trigraphs faster in executing?
Masi
More information about the TYPO3-dev
mailing list