From 784de8a57c599f43f5f26764b1dcd43e7f8a5be1 Mon Sep 17 00:00:00 2001 From: Srinivasa Segu Date: Fri, 17 Aug 2007 23:20:43 +0000 Subject: [PATCH] OPENJPA-322.Copying over the TimeZone to the proxy. 446787 seems to have accidentally removed this. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567170 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/openjpa/kernel/SingleFieldManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java index 31afc40b2..d32c0737e 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java @@ -92,7 +92,10 @@ class SingleFieldManager proxy = checkProxy(); if (proxy == null) { proxy = (Proxy) _sm.newFieldProxy(field); - ((Calendar) proxy).setTime(((Calendar) objval).getTime()); + Calendar pcal = (Calendar) proxy; + Calendar ocal = (Calendar) objval; + pcal.setTime (ocal.getTime ()); + pcal.setTimeZone (ocal.getTimeZone ()); ret = true; } break;