Hi All!
I'm working on a Cayenne app, and am looking for a way to store all
dates in the database in GMT irrespective of which locate the
application/server is running in?
I noticed that even when I would use the code like:
TimeZone tzGmt = getGmtTimeZone();
Calendar cal = new GregorianCalendar();
cal.get(Calendar.HOUR); //this line might not be important at all
cal.setTimeZone(TimeZone.getTimeZone("GMT");
Then use the date object of cal.getTime() it still stores the date in
the locate which the server running the application is configured for!
Has anyone done anything similar?
Thank you!
Gary
This archive was generated by hypermail 2.0.0 : Thu Sep 13 2007 - 01:10:35 EDT