freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: joel_trunick AT dell.com
- To: freetds
- Subject: Re: Reading DateTime in MSSQL (6.5) - BUG?
- Date: Wed, 21 Apr 1999 14:31:37
Here is the correct way to figure out the offset. Apparently the Weblogic
driver had the same problem and it was later fixed. The following code
shows how to get the offset (with daylight savings in consideration) for
the local time zone.
Could this be added to the FreeTDS driver?
Thanks,
Joel Trunick
Dell Computer
------------------------
GregorianCalendar cal = new GregorianCalendar();
int offset = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET);
ts = new Timestamp( ts.getTime() - offset );
-
Reading DateTime in MSSQL (6.5) - BUG?,
joel_trunick, 04/21/1999
- <Possible follow-up(s)>
- Re: Reading DateTime in MSSQL (6.5) - BUG?, Craig Spannring, 04/21/1999
- Re: Reading DateTime in MSSQL (6.5) - BUG?, joel_trunick, 04/21/1999
- Re: Reading DateTime in MSSQL (6.5) - BUG?, Craig Spannring, 04/21/1999
- Re: Reading DateTime in MSSQL (6.5) - BUG?, joel_trunick, 04/22/1999
- Re: Reading DateTime in MSSQL (6.5) - BUG?, joel_trunick, 04/22/1999
- Re: Reading DateTime in MSSQL (6.5) - BUG?, Craig Spannring, 04/27/1999
- Re: Reading DateTime in MSSQL (6.5) - BUG?, joel_trunick, 01/29/2024
Archive powered by MHonArc 2.6.24.