Commit 17c8f78
authored
date: too much whitespace for %e format (#987)
* I was tracking why the Perl date command separated Mar and 14 with 2 spaces instead of one
* The default strftime() format string is "%a %b %e %T %Z %Y"
* The Linux manual for strftime() says %e is the same as %d, except that a leading zero is replaced with a leading space
* So day 1 would be "01" and " 1", but day 10 would have no leading space/zero
* Formatting the day number with "%2d" is good enough for %e specifier; previously day 14 was formatted as " 14" in setup_specifiers()
%perl date # with patch
Fri Mar 14 09:11:30 AWST 2025
%date # GNU
Fri Mar 14 09:11:31 AM AWST 20251 parent 8d60ea1 commit 17c8f78
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments