java - How to maintain a unique timezone across web application -


i have requirement in enterprise web application maintain unique time zone (say est). timestamp display , store in database should in est only. using spring mvc/hibernate web application. there best practices or suggestion how implement feature? suggestions or guidance of great help.

my suggestion set timezone in initialization script creates java process using argument -duser.timezone=name name can find in list below:

https://en.wikipedia.org/wiki/list_of_tz_database_time_zones

note1: unfortunately, developer can create objects calendar using different timezone. cases can use java security polices (it hard setup application server). think configuring pretty enough.

note2 : default jvm collects timezone user environment.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -