Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 94377 invoked from network); 19 Apr 2007 06:07:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 06:07:36 -0000 Received: (qmail 25359 invoked by uid 500); 19 Apr 2007 06:07:42 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 25295 invoked by uid 500); 19 Apr 2007 06:07:42 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 25285 invoked by uid 99); 19 Apr 2007 06:07:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2007 23:07:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2007 23:07:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 780F671407D for ; Wed, 18 Apr 2007 23:07:15 -0700 (PDT) Message-ID: <24703168.1176962835488.JavaMail.jira@brutus> Date: Wed, 18 Apr 2007 23:07:15 -0700 (PDT) From: "NIcolas Maisonneuve (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Updated: (ABDERA-44) Date with TimeZone doesn't work (ex: 2005-12-11T10:10:10+01:00) In-Reply-To: <3464897.1176911535277.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ABDERA-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] NIcolas Maisonneuve updated ABDERA-44: -------------------------------------- According the simpleDateFormat Javadoc z Time zone General time zone Pacific Standard Time; PST; GMT-08:00 Z Time zone RFC 822 time zone -0800 so it works if I add GMT Date date=AtomDate.parse("2005-12-12T12:12:12+04:00"); System.out.println(date); date=AtomDate.parse("2005-12-12T12:12:12GMT+04:00"); System.out.println(date); Mon Dec 12 01:00:00 CET 2005 Mon Dec 12 09:12:12 CET 2005 > Date with TimeZone doesn't work (ex: 2005-12-11T10:10:10+01:00) > --------------------------------------------------------------- > > Key: ABDERA-44 > URL: https://issues.apache.org/jira/browse/ABDERA-44 > Project: Abdera > Issue Type: Bug > Environment: JDK 6, windows XP > Reporter: NIcolas Maisonneuve > > AtomDate.java handles only this pattern > 2005-12-11T10:10:10Z > but not this kind of pattern > 2005-12-11T10:10:10+01:00 > (wrong date generated) > date=AtomDate.parse("2005-12-12T12:12:12+01:00"); > System.out.println(date); > --> > Mon Dec 12 01:00:00 CET 2005 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.