[TYPO3-project-formidable] rdt_date: different behaviour when submitted
Jérôme Schneider
j.schneider at ameos.com
Wed Oct 21 14:14:57 CEST 2009
Hi Pablo,
I tried to reproduce using Formidable 2.0.367 and could not succeed.
If true, it's indeed a bug of rdt_date in corelation with timezones.
Could you try with dates at 2nd January 1970 ?
For this date, correct GMT timestamp should be 86400.
I tried:
* inserting it in DB => OK 86400
* resubmit and updating in DB => OK 86400
PS: you may try updating to revision 2.0.418 by SVN following
instructions you'll find here: http://formidable.typo3.ug/svn
Regards,
Jerome
Pablo Santamaria Lois a écrit :
> Hi to all!
>
> I would like to share with you a problem which arose to me while working with renderlet:DATE.
>
> Using a formidable template in edition mode, I've seen the following behaviour:
> A) if I change renderlet's value using the widget, and then submit the form, value stored in DB seems to be the chosen one. (OK)
> B) however, if I submit the form without change renderlet's value, date in DB WILL be changed, to a different timestamp. (current value - 7200)
>
> Let's see an example:
> A) I've selected 14/10/2009 in renderlet's widget, so in DB will be stored:
> 1255478400. This timestamp means [1]:
> - GMT: Wed, 14 Oct 2009 00:00:00 GMT
> - My timezone: Wed 14 Oct 2009 02:00:00 AM CEST
>
> B) With previous timestamp in DB, I didn't change renderlet's value, but submitted the form. In DB will be stored the following: 1255471200, which means:
> - GMT: Tue, 13 Oct 2009 22:00:00 GMT
> - My timezone: Wed 14 Oct 2009 12:00:00 AM CEST
>
> As far as I know, TYPO3 stores timestamps in BD in GMT format, so in case B), is renderlet:DATE managing correctly timezones?
>
> In case B), Why date in BD is modified although it wasn't changed using the renderlet?
>
> Any help from you will he highly appreciated.
> Thanks in advance, Pablo.
>
> ----
> I'm using TYPO3 4.2.8 and Formidable 2.0.367
> $GLOBALS['TYPO3_CONF_VARS']['SYS']['serverTimeZone'] = 1
>
> [1] http://www.epochconverter.com/
>
>
>
More information about the TYPO3-project-formidable
mailing list