comparison mercurial/templatefilters.py @ 39086:74b4a54002ec

templatefilters: undeprecate hgdate See the previous patch for why. Backed out changeset 0fe65bb7e160
author Yuya Nishihara <yuya@tcha.org>
date Wed, 13 Jun 2018 21:58:42 +0900
parents 0fe65bb7e160
children fabfbbf4dee2
comparison
equal deleted inserted replaced
39085:88e7105b5cd9 39086:74b4a54002ec
239 return node.hex(text) 239 return node.hex(text)
240 240
241 @templatefilter('hgdate', intype=templateutil.date) 241 @templatefilter('hgdate', intype=templateutil.date)
242 def hgdate(text): 242 def hgdate(text):
243 """Date. Returns the date as a pair of numbers: "1157407993 243 """Date. Returns the date as a pair of numbers: "1157407993
244 25200" (Unix timestamp, timezone offset). (DEPRECATED) 244 25200" (Unix timestamp, timezone offset).
245 """ 245 """
246 return "%d %d" % text 246 return "%d %d" % text
247 247
248 @templatefilter('isodate', intype=templateutil.date) 248 @templatefilter('isodate', intype=templateutil.date)
249 def isodate(text): 249 def isodate(text):