correctly pad %e with a leading space, fixes #44

This commit is contained in:
Sami Samhuri 2014-08-08 16:58:24 -07:00
parent df17fc85c9
commit 687ad1ec1e
2 changed files with 5 additions and 5 deletions

View file

@ -164,7 +164,7 @@
case 'd': return pad(d.getDate(), padding); case 'd': return pad(d.getDate(), padding);
// '01' // '01'
case 'e': return d.getDate(); case 'e': return pad(d.getDate(), padding == null ? ' ' : padding);
// '1970-01-01' // '1970-01-01'
case 'F': return _strftime(locale.formats.F || '%Y-%m-%d', d, locale); case 'F': return _strftime(locale.formats.F || '%Y-%m-%d', d, locale);