W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

[Bug 11706] Why -00:00 instead of +00:00 when time zone is UTC?

From: <bugzilla@jessica.w3.org>
Date: Sun, 09 Jan 2011 17:42:54 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PbzI6-0000c3-Qe@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11706

Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipj@opera.com

--- Comment #1 from Philip Jägenstedt <philipj@opera.com> 2011-01-09 17:42:54 UTC ---
This looks a bit odd and is quite annoying as it makes it very difficult to use
any existing software to generate this normalized format. Examples:

* UNIX: date -u "+%:z" gives "+00:00"

* C: printf("%+03d\n", 0) gives "+00"

* Python: str(t) where t is a datetime.time and t.tzinfo.utcoffset() returns 0
gives e.g. "18:40:12+00:00"

These are just the cases I've encountered, I'm sure the list of things that
uses + for 0 can be made very long.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Sunday, 9 January 2011 17:42:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 9 January 2011 17:42:57 GMT