I have problem with timestamp in database(firebird) with jdbc
data in database
timestamp 1994-10-12T00:00:00.000000000-00:00
I test with python and result is same in database but when I use jdbc(clojure)
result is 1994-10-11T17:00:00.000000000-00:00
I think it depend on timezone(I am in GMT+7)
How to fix it?
Thank you.
this code
(ns test.core
(:require [clojure.java.jdbc :as jdbc]))
(def firebird-setting {:description "Firebird Database"
:classname "org.firebirdsql.jdbc.FBDriver"
:subprotocol "firebirdsql"
:subname "//localhost:3051//firebird/data/test.fdb"
:user "user"
:password "pass"})
(jdbc/query firebird-setting
"select ts from TestTB")
and result
({:ts #inst "1994-10-11T17:00:00.000000000-00:00"})