bin/63064: strptime fails on %z
Stefan `Sec` Zehl
sec at 42.org
Thu Feb 19 05:50:05 PST 2004
>Number: 63064
>Category: bin
>Synopsis: strptime fails on %z
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 19 05:50:05 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Stefan `Sec` Zehl
>Release: FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD ice 4.9-STABLE FreeBSD 4.9-STABLE #11: Sun Jan 25 15:43:27 CET 2004 root at ice:/export/obj/export/src/sys/ICE i386
>Description:
strptime fails to convert %z
>How-To-Repeat:
ice:~>date -j -f '%d/%b/%Y:%T %z' '19/Feb/2004:12:23:05 +0200' '+%T %z'
Warning: Ignoring 5 extraneous characters in date string (+0200)
12:23:05 +0100
As we can see, it ignores %z completely, and the returned time has
the local timezone (+0100, CET) instead of the correct one (+0200).
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list