Actions
Feature #17066
closedenable stdWrap.strftime to use GMT time instead of server time
Start date:
2007-03-01
Due date:
% Done:
0%
Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:
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)
Files
Actions