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
This commit is contained in:
Srinivasa Segu 2007-08-17 23:20:43 +00:00
parent f9fcb11a35
commit 784de8a57c
1 changed files with 4 additions and 1 deletions

View File

@ -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;