Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
date time issue
saikrsna
2015-04-08 04:09:00.0
we are using HXTT driver in our application to read mdb's and following are the details for the same,

driver jar name: Access_JDBC30.jar
dbutils:commons-dbutils-1.3.jar

my mdb queries are follows:


forearm_present:
Query = select count(*) > 0 from scananalysis a where TRIM(a.patient_key) = ? and a.scan_type IN ( 6, 7 )

Params = 1JTC080RFM0145063

Results = true

forearm_scanid:
Query = select trim(a.scanid) from scananalysis a where TRIM(a.patient_key) = ? and date(a.scan_date)= date(?) and a.scan_type IN ( 6, 7) order by a.scan_date desc

Params = 1JTC080RFM0145063,12/15/2010

Results = Null

forearm_maxdate:
Query = select max(a.scan_date) from scananalysis a where TRIM(a.patient_key) = ? and a.scan_type IN ( 6, 7 )

Params = 1JTC080RFM0145063

Results = 2009-12-22 10:43:55.0


dxa_date_forarm:
Query = select if(?,if(isnull(?),?,?),null);

Params: hip_present,hip_scanid,hip_maxdate,acquisition_date
(true, null, '2009-12-22 10:43:55.0' ,'12/15/2010')

result: '2009-12-22 05:13:55.0; instead of '2009-12-22 10:43:55.0'

i am getting the result for above query expression result as
HR:Min: 5:30 backward time

Could you please suggest me the right solution for this?
Re:date time issue
HXTT Support
2015-04-08 04:34:08.0
Try timezone connection property
For instance,
timezone=gmt
timezone=local
Re:Re:date time issue
saikrsna
2015-04-08 05:05:46.0
Could you please give the example how to add the timezone connection property
in the query?
Re:Re:Re:date time issue
HXTT Support
2015-04-08 08:41:51.0
It's a connection property,
1. you can use it in jdbc url, for instance, jdbc:dbf:/d:/test/dbf?timezone=local
2. use it in property objerct
properties.put("timezone","gmt");
Connection con=DriverManager.getConnection(jdbcurl,properties);

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap