mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-27 14:57:37 +00:00
correctly pad %e with a leading space, fixes #44
This commit is contained in:
parent
df17fc85c9
commit
687ad1ec1e
2 changed files with 5 additions and 5 deletions
|
|
@ -164,7 +164,7 @@
|
|||
case 'd': return pad(d.getDate(), padding);
|
||||
|
||||
// '01'
|
||||
case 'e': return d.getDate();
|
||||
case 'e': return pad(d.getDate(), padding == null ? ' ' : padding);
|
||||
|
||||
// '1970-01-01'
|
||||
case 'F': return _strftime(locale.formats.F || '%Y-%m-%d', d, locale);
|
||||
|
|
|
|||
Loading…
Reference in a new issue