← Back to team overview

openjdk team mailing list archive

[Bug 275654] Re: "Unparseable date"

 

Launchpad has imported 4 comments from the remote bug at
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=214.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2008-10-13T09:52:10+00:00 Matthias Klose wrote:

import java.util.*;
DateFormat dp = new SimpleDateFormat("yyyyMMddHHmmss z");
Date start = dp.parse("20081001175000 CET");

returns "Unparseable date" on OpenJDK 6 on Ubuntu 8.04.1 server, but
works with Sun Java 6 on Gentoo.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/3

------------------------------------------------------------------------
On 2008-10-13T09:52:41+00:00 Matthias Klose wrote:

Created attachment 112
test case

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/4

------------------------------------------------------------------------
On 2008-10-16T17:06:56+00:00 0-naveed wrote:

Works OK for me using java-1.6.0-openjdk-1.6.0.0-0.18.b09.fc9.x86_64 on
Fedora. If I println start in your test case, I get the following text,
with no exceptions:

Wed Oct 01 12:50:00 EDT 2008


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/5

------------------------------------------------------------------------
On 2008-10-20T20:38:39+00:00 Omajid wrote:

Works for me with java-1.6.0-openjdk-1.6.0.0-0.23.b12.fc10.i386 (Icedtea
1.3) on Fedora.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/6

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/275654

Title:
  "Unparseable date"

Status in OpenJDK:
  Invalid
Status in “openjdk-6” package in Ubuntu:
  Invalid

Bug description:
  import java.util.*;
  DateFormat dp = new SimpleDateFormat("yyyyMMddHHmmss z");
  Date start = dp.parse("20081001175000 CET");

  returns "Unparseable date" on OpenJDK 6 on Ubuntu 8.04.1 server, but
  works with Sub Java 6 on Gentoo.

  I suspect it doesn't understand the timezone "CET" and expects a
  numerical ("+0100" or "+0200", depending on summer / winter time)?

To manage notifications about this bug go to:
https://bugs.launchpad.net/openjdk/+bug/275654/+subscriptions


References