From 1ad9d0ac29a0c4abee8ea6c1f7e1ca00c01b69c0 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 2 Mar 2001 22:10:04 +0000 Subject: Implement ampm_fmt (%r) per POSIX --- lib/libc/stdtime/strptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdtime/strptime.c') diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index ee32651..57c5da1 100644 --- a/lib/libc/stdtime/strptime.c +++ b/lib/libc/stdtime/strptime.c @@ -181,7 +181,7 @@ label: break; case 'r': - buf = _strptime(buf, "%I:%M:%S %p", tm); + buf = _strptime(buf, tptr->ampm_fmt, tm); if (buf == 0) return 0; break; -- cgit v1.1