Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.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 DBF
date time issue
saikrsna
2015-04-08 04:09:00
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
Try timezone connection property
For instance,
timezone=gmt
timezone=local
Re:Re:date time issue
saikrsna
2015-04-08 05:05:46
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
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
 

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