[TYPO3-core] RFC: #12229: stdWrap has date but no gmdate

Martin Kutschker masi-no at spam-typo3.org
Wed Oct 14 11:55:51 CEST 2009


David Bruchmann schrieb:
> ----- Ursprüngliche Nachricht -----
> Von:        JoH asenau <info at cybercraft.de>
> Gesendet:   Mittwoch, 14. Oktober 2009 11:25:28
> An:         typo3-team-core at lists.netfielders.de
> CC:
> Betreff:    Re: [TYPO3-core] RFC: #12229: stdWrap has date but no gmdate
> 
>> What about real timezones instead of just an hour offset?
> 
>> 10.strftime= %a %H:%i
>> 10.strftime.gm = 1
>> 10.strftime.gm.timezone = CET
>>
> 
> Yes that's a good idea but when gm stands for GMT than it has to be
> renamed becaus it doesn't make any sense in this context.
> I'd omit it and take only these lines:
> 
> 10.strftime= %a %H:%i
> 10.strftime.timezone = CET

Yep (see my other posting).

But the original patch only wanted a switch to use gmdate() and gmstrftime() instead of date() and
strftime(). Storing timestamps in the DB as GM makes sense and is quite usual.

What are your use cases for TZ support in stdWrap date/strftime? Why don't you apply the offset
somewhere else? Do you have any plans how the could should actually work (parsing TZ name etc)?

Masi


More information about the TYPO3-team-core mailing list