[TYPO3-core] RFC #7626: Date/time handling is completely broken in 4.2

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Feb 25 08:30:05 CET 2008


Hi!

Steffen Kamper wrote:
> $sign = intval(substr($timeZone,0,1).'1');

$sign = ($timeZone{0} == '-' ? -1 : 1);

> $serverTimezoneOffset = $sign * $minutes;

Or even shorter:

$serverTimezoneOffset = ($timeZone{0} == '-' ? -$minutes : $minutes);

(no need for $sign)

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-team-core mailing list