[TYPO3-core] RFC #8522: Bug: Datetime shifts on copy and localize (timezone related)

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Jun 2 10:41:54 CEST 2008


Ingo Renner wrote: on 02.06.2008 10:24:
> Ernesto Baschny [cron IT] wrote:
> 
>> Solution:
>> Attached patch. Thanks to lee perry for the original bug report.
> 
> Ernesto, as pointed out before on this list this is not a good 
> description of the solution. What does the patch do exactly to resolve 
> the issue?

Ingo, I don't know what you are refering to. Please just read the 
original RFC. For your ease, here is the relevant quote:

> Notes:
> The problem comes from the fact that TCEmain "checkValue"
 > transformations were being applied on already transformed data (from
 > the database) even in case of a copy (which is also used on
 > "localize"). Until now there was no problem, because all
 > checkValue transformation would do no harm on already transformed
 > input (e.g. trim on trimmed string does nothing, "upper" on already
 > upper cased string is harmless, etc), but it turned out to be a
 > problem on the transformation needed for datetime fields (shifting
 > the INPUT coming from the client, which is expected as UTC to
 > server-TZ timestamp).
> 
> So the solution is not to apply any checkValue in case of COPY or
 > LOCALIZE (which uses COPY), which is what the patch does.

I don't see many other explaining their patches in more detail than 
that, as you can also simply read the patch and see what it does.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list