##// END OF EJS Templates
templater: make date() use helper function to evaluate argument...
Yuya Nishihara -
r28334:9dc340f5 default
parent child Browse files
Show More
@@ -329,7 +329,7 b' def date(context, mapping, args):'
329 # i18n: "date" is a keyword
329 # i18n: "date" is a keyword
330 raise error.ParseError(_("date expects one or two arguments"))
330 raise error.ParseError(_("date expects one or two arguments"))
331
331
332 date = args[0][0](context, mapping, args[0][1])
332 date = evalfuncarg(context, mapping, args[0])
333 fmt = None
333 fmt = None
334 if len(args) == 2:
334 if len(args) == 2:
335 fmt = stringify(args[1][0](context, mapping, args[1][1]))
335 fmt = stringify(args[1][0](context, mapping, args[1][1]))
General Comments 0
You need to be logged in to leave comments. Login now