From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15032 invoked by alias); 27 Jan 2015 14:24:27 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 14944 invoked by uid 48); 27 Jan 2015 14:24:14 -0000 From: "vincent at bernat dot im" To: glibc-bugs@sourceware.org Subject: [Bug libc/17887] New: strptime should be able to parse "+01:00" style timezones Date: Tue, 27 Jan 2015 14:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent at bernat dot im X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00208.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17887 Bug ID: 17887 Summary: strptime should be able to parse "+01:00" style timezones Product: glibc Version: 2.21 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: vincent at bernat dot im CC: drepper.fsp at gmail dot com Currently, strptime() only accepts either 2-digit or 4-digit timezone specifications. This means that "+02" and "+0200" are correctly parsed. However, "+02:00" is parsed as "+02". On most usage, this is fine but if we try to parse "+02:30", we get "+02" instead. ISO 8601 allows the use of "+02:00" and we should be able to parse it as expected. -- You are receiving this mail because: You are on the CC list for the bug.