summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime/strftime.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-03-02 22:10:04 +0000
committerache <ache@FreeBSD.org>2001-03-02 22:10:04 +0000
commit1ad9d0ac29a0c4abee8ea6c1f7e1ca00c01b69c0 (patch)
tree0d18d6fef085d49ef004f8a345fd0cfe0f8a4953 /lib/libc/stdtime/strftime.c
parent021d152d846c8f073aaea8a609dbeaebb29a7e66 (diff)
downloadFreeBSD-src-1ad9d0ac29a0c4abee8ea6c1f7e1ca00c01b69c0.zip
FreeBSD-src-1ad9d0ac29a0c4abee8ea6c1f7e1ca00c01b69c0.tar.gz
Implement ampm_fmt (%r) per POSIX
Diffstat (limited to 'lib/libc/stdtime/strftime.c')
-rw-r--r--lib/libc/stdtime/strftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c
index 23120f2..e54ea89 100644
--- a/lib/libc/stdtime/strftime.c
+++ b/lib/libc/stdtime/strftime.c
@@ -234,7 +234,7 @@ label:
pt = _fmt("%H:%M", t, pt, ptlim);
continue;
case 'r':
- pt = _fmt("%I:%M:%S %p", t, pt, ptlim);
+ pt = _fmt(tptr->ampm_fmt, t, pt, ptlim);
continue;
case 'S':
pt = _conv(t->tm_sec, "%02d", pt, ptlim);
OpenPOWER on IntegriCloud