forked from github/pelican
Support date format codes G, V, and u (used by ISO dates) (#2902)
This commit is contained in:
parent
0919507ae7
commit
332be6e5c8
2 changed files with 5 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ def strftime(date, date_format):
|
|||
'''
|
||||
def strip_zeros(x):
|
||||
return x.lstrip('0') or '0'
|
||||
c89_directives = 'aAbBcdfHIjmMpSUwWxXyYzZ%'
|
||||
# includes ISO date parameters added by Python 3.6
|
||||
c89_directives = 'aAbBcdfGHIjmMpSUuVwWxXyYzZ%'
|
||||
|
||||
# grab candidate format options
|
||||
format_options = '%[-]?.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue