[TYPO3-english] problem with External Data Import ext

Nicola Cerchiari nicola.cerchiari at gmail.com
Wed Mar 16 14:02:01 CET 2011


Yeah, glad too but i found a (in my case) minor problem in the storing of a
field and I don't really know if it even depends on the extension itself.

I'm importing a formatted date & time that I convert back to a timestamp
before storing it into the destination table. With much surprise when it's
stored it gets wrong.
In details: I could check that everything is fine till the TCEmain debug
step is complete but the final timestamp written in the db is an hour
backward.
For example:
I get this date -> 10-03-2011 13:47:37 transformed like this -> 1299761257
but in the database I get this -> 1299757657

Very strange to me, no?!

Bests,
N

2011/3/16 François Suter <fsu-lists at cobweb.ch>

> Hi Nicola,
>
>
>  I finally understood why it wasn't working with trnasformations.
>> I stupidly thought that the $record array passed to the transformation
>>  function would contain source fields, instead it's already named against
>> destination fields.
>>
>
> Yes, this is a common mistake. I guess I should add a note in the manual
> about this.
>
> Glad that you found the issue and got everything working.
>
>
> Cheers
>
> --
>
> Francois Suter
> Cobweb Development Sarl - http://www.cobweb.ch
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list