Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 24334 invoked from network); 23 Jul 2010 20:43:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 20:43:12 -0000 Received: (qmail 75014 invoked by uid 500); 23 Jul 2010 20:43:12 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 74966 invoked by uid 500); 23 Jul 2010 20:43:11 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 74956 invoked by uid 99); 23 Jul 2010 20:43:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 20:43:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 20:43:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6NKgnq6020825 for ; Fri, 23 Jul 2010 20:42:50 GMT Message-ID: <30520075.556371279917769730.JavaMail.jira@thor> Date: Fri, 23 Jul 2010 16:42:49 -0400 (EDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Closed: (OPENJPA-1480) time zone info lost when using timestamp field In-Reply-To: <2022691140.11211264187181493.JavaMail.jira@brutus.apache.org> 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/OPENJPA-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick closed OPENJPA-1480. --------------------------------- Fix Version/s: (was: 1.3.0) (was: 2.0.1) Resolution: Won't Fix > time zone info lost when using timestamp field > ---------------------------------------------- > > Key: OPENJPA-1480 > URL: https://issues.apache.org/jira/browse/OPENJPA-1480 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 1.2.3, 1.3.0, 2.0.0-M3, 2.0.0-beta > Environment: at least DB2, Derby, Sybase > Reporter: B.J. Reed > Assignee: Michael Dick > Priority: Minor > Attachments: 1280-1.2.x.patch, OPENJPA-1480-TestCalendarField.patch, TestTimeZone.java, TZDataModel.java > > > Looks like OpenJPA always gets the time stamp out at the time zone of the machine, not the time zone that was used originally. > The test case is putting in 2 TimeStamps > TTimestamp = 4-3-2004 21:0:0.0 (America/New_York) > TTimestampUTC = 4-4-2004 2:0:0.0 (UTC) > When OpenJPA gets those 2 timesamps back out of the database, they are > TTimestamp = 4-3-2004 21:0:0.0 (America/New_York) > TTimestampUTC = 4-3-2004 21:0:0.0 (America/New_York) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.