[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/27189] New: java.text.SimpleDateFormat formats negative t
From: |
kiyun dot roe at active-endpoints dot com |
Subject: |
[Bug classpath/27189] New: java.text.SimpleDateFormat formats negative time zone offsets with double '-' |
Date: |
18 Apr 2006 01:57:20 -0000 |
java.text.SimpleDateFormat#format() appends a negative sign twice when
formatting a time zone with a negative offset from GMT. For example, using
format string
yyyy-MM-dd HH:mm:ss Z
should result in something like
2006-04-14 10:09:39 -0400
in EDT, but it comes out as
2006-04-14 10:09:39 --400
It appears to me that the culprit is the call to
withLeadingZeros(hours, 2, buffer);
at about line 812, because hours may be negative.
--
Summary: java.text.SimpleDateFormat formats negative time zone
offsets with double '-'
Product: classpath
Version: 0.90
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kiyun dot roe at active-endpoints dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27189
- [Bug classpath/27189] New: java.text.SimpleDateFormat formats negative time zone offsets with double '-',
kiyun dot roe at active-endpoints dot com <=