[TYPO3-project-formidable] rdt_date: different behaviour when submitted
Albert van der Veen
albert.van.der.veen at xs4all.nl
Fri Oct 23 15:52:52 CEST 2009
Hi Uwe,
Thanks for the tip: had the same problem and replacing gmstrftime with
strftime in class.tx_rdtdate fixes it.
@Jerome: gmstrftime always gives the time in GMT which is probably not
the desired behavior
grtz,
Albert
Uwe Schmelzer wrote:
>
> From the php manual:
>
> Behaves the same as strftime() except that the time returned is
> Greenwich Mean Time (GMT).
> For example, when run in Eastern Standard Time (GMT -0500),
> the first line below prints "Dec 31 1998 20:00:00",
> while the second prints "Jan 01 1999 01:00:00".
>
> <?php
> setlocale(LC_TIME, 'en_US');
> echo strftime("%b %d %Y %H:%M:%S", mktime(20, 0, 0, 12, 31, 98)) . "\n";
> echo gmstrftime("%b %d %Y %H:%M:%S", mktime(20, 0, 0, 12, 31, 98)) . "\n";
> ?>
>
>
> HTH uwe
>
More information about the TYPO3-project-formidable
mailing list