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

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Feb 24 18:24:00 CET 2008


Steffen Kamper schrieb:
> "Dmitry Dulepov [typo3]" <dmitry at typo3.org> schrieb im Newsbeitrag 
> news:mailman.1.1203860748.23255.typo3-team-core at lists.netfielders.de...
>> Hi!
>>
>> Steffen Kamper wrote:
>>> Server thinks he get an UTC and adds 1 hour (UTC +1)
>> Where does server add it? Or you are talking about Masi's patch?
>>
> it's the part in tceforms you also removed in your patch
> -  if((in_array('date',$evalList) || in_array('datetime',$evalList)) && 
> $PA['itemFormElValue']>0){
> -    // Add server timezone offset to UTC to our stored date
> -   $hoursOffset = date('O',$PA['itemFormElValue'])/100;
> -   $PA['itemFormElValue'] += ($hoursOffset*60*60);
> -  }

Oops, I thought this part was to make the date set UTC (converting from 
ser TZ). In fact it's trying to recreate server TZ from stored UTC.

Ok, if we declare that we're always using server time this has to go.

Masi


More information about the TYPO3-team-core mailing list