Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-13664 (
https://hibernate.atlassian.net/browse/HHH-13664?atlOrigin=eyJpIjoiMTJjOT...
)
Re: SimpleTimestamper hangs in loop when system clock jumps backwards (
https://hibernate.atlassian.net/browse/HHH-13664?atlOrigin=eyJpIjoiMTJjOT...
)
Hi Irina,
I would suggest reading or listening some of the works of Stephen Colebourne about this
topic; I just found this summary:
https://www.infoq.com/articles/java.time (
https://www.infoq.com/articles/java.time ) - in particular read the section about
Timezones.
But the key fact is that time-zones are political creations. They are
often used to demonstrate political control over an area, such as the
recent change in Crimea to Moscow time. As with anything political, the
associated rules frequently defy logic. The rules can and do change with
very little notice.
Clearly, that should be enough motivation for us engineers to not rely on such a time
reference; especially not for timestamped coordination or for any situation in which a
timestamp is required to disambiguate different instants in the “continuous flow of time”
which we rely on in our models of reality (ignoring more advanced physics for sake of
practical applications).
I do wonder if we could do something better in Hibernate, but a the moment I can’t produce
a better suggestion than to use UCT with NTP on any servers.
HTH
(
https://hibernate.atlassian.net/browse/HHH-13664#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13664#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100215- sha1:a0f3b6a )