Project

General

Profile

Actions

Feature #17066

closed

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

Added by Ralf Hettinger over 17 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
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

0005110.patch (832 Bytes) 0005110.patch Administrator Admin, 2007-03-01 23:25
Actions #1

Updated by Ralf Hettinger about 17 years ago

Additionally, it would be a generally good idea, if strftime supported stdWrap features

Actions #2

Updated by Ralf Hettinger over 14 years ago

Duplicate of #21266, can be closed.

Actions #3

Updated by Benni Mack over 14 years ago

Fixed with #21266

Actions #4

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.4.0)
Actions

Also available in: Atom PDF