Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.0
  HXTT Cobol v4.0
  HXTT DBF v7.0
  HXTT Excel v6.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Paradox v7.0
  HXTT PDF v1.1
  HXTT Text(CSV) v7.0
  HXTT Word v1.0
  HXTT XML v3.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT Excel
Excel driver doesn't handle summer/winter time correctly.
Jorn Hertsig
2011-05-05 05:52:11.0
I have an excel sheet with two times: 5-05-11 15:00 and 5-01-11 15:00. When I read these fields with the excel driver, it gives me two timestamps: 1304604000000 and 1294236000000. Converting these to a Date will result in 2011-05-05T16:00:00.000+02:00 and 2011-01-05T15:00:00.000+01:00. Suddenly, my date in the summer is one hour later.
Could you fix this, please?
Re:Excel driver doesn't handle summer/winter time correctly.
HXTT Support
2011-05-10 22:07:31.0
>it gives me two timestamps: 1304604000000 and 1294236000000.
> Converting these to a Date will result in 2011-05-05T16:00:00.000+02:00
> and 2011-01-05T15:00:00.000+01:00
You should be using Daylight Saving Time (DST) . Java tries its best to get the right time zone information. So it usually uses the local server time.
If you're using ResultSet.getTimestamp, you can try timezone=GMT connection property.
If you won't DST in JVM, java -Duser.timezone=GMT-8:00" or similar settings. System.setProperty("user.timezone","Asia/Jerusalem"); can do the same thing.
Re:Re:Excel driver doesn't handle summer/winter time correctly.
Jorn Hertsig
2011-05-12 06:19:00.0
I have tried many combinations of server time zone, time zone parameter to the connection and time zone set in Excel.
* The time zone set in excel is always ignored
* The time zone parameter for the connection also seems to be ignored
* The server time zone is ignored by HXTT, but it does of course affect the Java date time API.
In all cases, the time stamp returned by HXTT is one hour off if the date is in summer time, and correct if the date is in winter time.
I can supply a unit test (using Joda Time) to show this, if you like.
Re:Re:Re:Excel driver doesn't handle summer/winter time correctly.
HXTT Support
2011-05-12 06:59:51.0
Please send us such a sample, and tell us your timezone.
Re:Re:Re:Re:Excel driver doesn't handle summer/winter time correctly.
HXTT Support
2011-05-12 19:13:30.0
Supported. Please download the latest package.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap