Hi Isomorphic,
we are preparing for a DB change (Oracle -> PostgreSQL) and wanted to improve date storage at the same time.
Therefore we played around a bit.
In the DateFormatAndStorage docs you write:
We learned this now the hard way - dates stored are CET/CEST (UTC+1 / UTC+2), as our dev systems and server run using Europe/Berlin Timezone.
Adding -Duser.timezone=UTC to the Tomcat start like here in Eclipse led to changed times stored and old stored times displayed with an offset (as expected).
Our plan is to shift all the times in the DB and run the DB (or all sessions) in UTC. Then we can of course use -Duser.timezone=UTC.
Do you have any other tips in this area? Do you suggest using columns with timezone in the DB? Is this just ignored by the framework and the DB will use the session's TZ? I did not find a datatype for this in the docs.
Besides these questions, there is also a bug IMHO and one typo (see the attached picture).
Also, running the application with sql.MYDB.useUTCData/eTimes: true in server.properties does not have the same effect as running Tomcat with JVM option -Duser.timezone=UTC - it is just ignored (using current 12.0p).
Can you double check this is working for you as expected? I tried both versions without success and also did not find a default in isomorphic_core_rpc.jar/framework.properties
Thank you & Best regards
Blama
we are preparing for a DB change (Oracle -> PostgreSQL) and wanted to improve date storage at the same time.
Therefore we played around a bit.
In the DateFormatAndStorage docs you write:
Because storage using the JVM's local timezone just uses whatever the local timezone happens to be at the time of writing or reading, changing the operating system or JVM timezone will change the meaning of the datetimes already stored.For example, if you change your server's timezone from US Eastern to US Pacific, any datetimes you have already stored will effectively be shifted forward by three hours. This does not happen if you choose UTC as your Smart GWT storage strategy, because it is independent of server timezone
Adding -Duser.timezone=UTC to the Tomcat start like here in Eclipse led to changed times stored and old stored times displayed with an offset (as expected).
Our plan is to shift all the times in the DB and run the DB (or all sessions) in UTC. Then we can of course use -Duser.timezone=UTC.
Do you have any other tips in this area? Do you suggest using columns with timezone in the DB? Is this just ignored by the framework and the DB will use the session's TZ? I did not find a datatype for this in the docs.
Besides these questions, there is also a bug IMHO and one typo (see the attached picture).
Also, running the application with sql.MYDB.useUTCData/eTimes: true in server.properties does not have the same effect as running Tomcat with JVM option -Duser.timezone=UTC - it is just ignored (using current 12.0p).
Can you double check this is working for you as expected? I tried both versions without success and also did not find a default in isomorphic_core_rpc.jar/framework.properties
Thank you & Best regards
Blama
Comment