Return-Path: X-Original-To: apmail-db-jdo-dev-archive@www.apache.org Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB93DD5B4 for ; Sun, 19 May 2013 20:41:16 +0000 (UTC) Received: (qmail 79188 invoked by uid 500); 19 May 2013 20:41:16 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 79164 invoked by uid 99); 19 May 2013 20:41:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 May 2013 20:41:16 +0000 Date: Sun, 19 May 2013 20:41:16 +0000 (UTC) From: "Michael Bouschen (JIRA)" To: jdo-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JDO-720) Possible time zone issue in SupportedDateMethods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JDO-720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Bouschen updated JDO-720: --------------------------------- Attachment: JDO-720.patch Attached you find a patch removing the time zone setting and changing the database type from TIMESTAMP to DATE for the following columns HIREDATE, BIRTHDATE and FOUNDEDDATE. > Possible time zone issue in SupportedDateMethods > ------------------------------------------------ > > Key: JDO-720 > URL: https://issues.apache.org/jira/browse/JDO-720 > Project: JDO > Issue Type: Bug > Components: tck > Affects Versions: JDO 3 update 1 (3.0.1) > Reporter: Michael Bouschen > Fix For: JDO 3 maintenance release 1 (3.1) > > Attachments: JDO-720.patch > > > The TCK query test SupportedDateMethods fails when running a Date.getDate query: the query result is empty where it should include an employee instacne. > Please note, the failure occurs when running the test in California and Arizona, but not in Europe. > Looks like the problem is in the company model reader creating a date in the America/New_York time zone that is actually yesterday in other time zones, so the tests fail. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira