Re: TimeZone conversion in Connector/J; maybe a patch is in order?
Posted by: David Tonhofer
Date: October 06, 2004 02:04PM

Ok, seems like the code is done...at least it works for me. Changes:

Connection.java
==========
- configureTimezone() has been recoded, now groks 'conversionCalendar' parameter
but keeps existing functionality
- new member: Calendar conversionCalendar
- new member: int conversionCalendarCase
- new member: String conversionCalendarRequestedTZ
- new member: setTimestampConversionCalendar(), getTimestampConversionCalendar()
- deleted member: defaultTimeZone, getDefaultTimeZone()
- deleted member: serverTimeZone, getServerTimeZone()
- deleted member: useTimeZone

PreparedStatement.java
===============
- setTimestampInternal() and setTimeInternal() have been recoded

ResultSet.java
=========
- getDefaultTimeZone() is gone
- getTimeInternal(int,TimeZone) has been replaced by getTimeInternal(int,Calendar)
- getTimestampInternal(int,TimeZone) has been replaced by getTimestampInternal(int,Calendar)
- fast*Create() methods have been recoded
...plus some minor initialization changes

TimeUtil.java
========
- changeTimezone() has been deleted
- getCanonicalTimezone() sees slight mods in error text

...where do I post this code????

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.