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

David Bruchmann typo3-team-core at bruchmann-web.de
Wed Oct 14 09:46:01 CEST 2009


----- Ursprüngliche Nachricht -----
Von:        Martin Kutschker <masi-no at spam-typo3.org>
Gesendet:   Mittwoch, 14. Oktober 2009 09:30:05
An:         typo3-team-core at lists.netfielders.de
CC:
Betreff:    Re: [TYPO3-core] RFC: #12229: stdWrap has date but no gmdate
> Steffen Kamper schrieb:
>> Solution:
>> add gmdate
>>
>> 10 = TEXT
>> 10.field = tstamp
>> 10.gmdate = d.m.Y H:i
> 
> How about a propery?
> 
> 10 = TEXT
> 10.field = tstamp
> 10.date = d.m.Y H:i
> 10.date.gm = 1
> 
> The advantage is that the already large list of stdWrap properties isn't getting larger. Plus we can
> apply this property also to stftime.
> 
> 10 = TEXT
> 10.field = tstamp
> 10.strftime= %a %H:%i
> 10.strftime.gm = 1
> 
> Masi

Hi,

whats about something like that:

10 = TEXT
10.field = tstamp
10.strftime= %a %H:%i
10.strftime.zone = gm

So the parameter is defined fixed and values can be added anytime.

A second parameter could be a signed int:
	10.strftime.time = -5
What should calculate the timezone by int.

Names of my parameters aren't the best perhaps but my ideas ;-)


Best Regards
David


More information about the TYPO3-team-core mailing list