From d09dc4562a1bd72b923a730dbe837406e4f10ccb Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Sat, 8 Aug 2015 03:39:51 +0900 Subject: 35928: '%-m' should work even if not supported by strftime(3) Also clarify document. --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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; -- cgit 1.4.1