Can we say the default java.time.Instant type handler is not doing right ? #3049
Replies: 1 comment
-
Hello @WestFarmer , You can say that And some DBs store submitted date/time in Although I may not fully understand your app's requirements, you should check if [OT] |
Beta Was this translation helpful? Give feedback.
-
java.time.Instant:
I think it means it's not time-zone aware.
but the current
java.time.Instant
type handler doing this:while we know that
java.sql.ResultSetr#getTimestamp(columnIndex)
will be impacted by the JVM's timezone.the actual Instant object got will have incorrect value.
why not doing something like this:
the date time stuff is complex as hell, so this maybe a silly question, correct me I am wrong.
Beta Was this translation helpful? Give feedback.
All reactions