Date: Thu, 19 Feb 2004 14:43:44 +0100 (CET) From: Stefan `Sec` Zehl <sec@42.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/63064: strptime fails on %z Message-ID: <20040219134344.6BEAE1CE37@ice.42.org> Resent-Message-ID: <200402191350.i1JDo5CK018445@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040219134344.6BEAE1CE37>