summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime/strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdtime/strptime.c')
-rw-r--r--lib/libc/stdtime/strptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index 7da0b9c..ee32651 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -141,8 +141,8 @@ label:
break;
case 'c':
- /* NOTE: c_fmt is intentionally ignored */
- buf = _strptime(buf, "%a %Ef %T %Y", tm);
+ /* NOTE: c_fmt is hardcoded in timelocal.c */
+ buf = _strptime(buf, tptr->c_fmt, tm);
if (buf == 0)
return 0;
break;
OpenPOWER on IntegriCloud