diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2015-08-08 03:39:51 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2015-08-08 03:39:51 +0900 |
commit | d09dc4562a1bd72b923a730dbe837406e4f10ccb (patch) | |
tree | 3ac3f13e4fca3f2eded5d84c601e0da6ad03001a /Src | |
parent | 2fc05d522fa2bf4cab0ebe57bee02093ba6b1382 (diff) | |
download | zsh-d09dc4562a1bd72b923a730dbe837406e4f10ccb.tar.gz zsh-d09dc4562a1bd72b923a730dbe837406e4f10ccb.tar.xz zsh-d09dc4562a1bd72b923a730dbe837406e4f10ccb.zip |
35928: '%-m' should work even if not supported by strftime(3)
Also clarify document.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index f7aaaedf4..236661a9f 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3006,7 +3006,6 @@ morefmt: *buf++ = '0' + (hr12 % 10); break; -#ifndef HAVE_STRFTIME case 'd': if (tm->tm_mday > 9 || !strip) *buf++ = '0' + tm->tm_mday / 10; @@ -3032,6 +3031,7 @@ morefmt: *buf++ = '0' + (tm->tm_year / 10) % 10; *buf++ = '0' + tm->tm_year % 10; break; +#ifndef HAVE_STRFTIME case 'Y': { int year, digits, testyear; |