Issue Feature Closed

#17066enable stdWrap.strftime to use GMT time instead of server time

Ralf Hettinger 03/01/07, 23:24 updated 03/29/11, 14:18

Description

The attached patch introduces the stdWrap functionality

stdWrap.strftime.gm = boolean

If set, the given value is passed through gmstrftime (see http://www.php.net/manual/en/function.gmstrftime.php) instead of strftime. This is espacially useful for fields stored as time (not as datetime), which are only generally valid if gmstrftime is used.

Example: if your server is set up to use CEST and an editor enters 9:00 into a time evalling TCE form for field mytime, you’d get the following results:

stdWrap {
field = mytime
strftime = %H:%M
}
=> 10:00

stdWrap {
field = mytime
strftime = %H:%M
strftime.gm = 1
}
=> 9:00

(issue imported from #M5110)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.