##// END OF EJS Templates
templatefilters: add filter to convert date to local date (issue1674)...
Henrik Stuart -
r8591:08c93b07 default
parent child Browse files
Show More
@@ -341,6 +341,7 b' PYTHONPATH::'
341 341 - hgdate: Date. Returns the date as a pair of numbers:
342 342 "1157407993 25200" (Unix timestamp, timezone offset).
343 343 - isodate: Date. Returns the date in ISO 8601 format.
344 - localdate: Date. Converts a date to local date.
344 345 - obfuscate: Any text. Returns the input text rendered as a
345 346 sequence of XML entities.
346 347 - person: Any text. Returns the text before an email address.
@@ -192,6 +192,7 b' filters = {'
192 192 "isodatesec": lambda x: util.datestr(x, '%Y-%m-%d %H:%M:%S %1%2'),
193 193 "json": json,
194 194 "jsonescape": jsonescape,
195 "localdate": lambda x: (x[0], util.makedate()[1]),
195 196 "nonempty": nonempty,
196 197 "obfuscate": obfuscate,
197 198 "permissions": permissions,
General Comments 0
You need to be logged in to leave comments. Login now