Answer the question
In order to leave comments, you need to log in
How to work with dates in a client-server application?
A fairly standard development dilemma. There is one server and a bunch of clients that can save the date to the nearest second.
What options can be used to ensure that the date is transmitted between the server and the client with the correct time zone offset?
Answer the question
In order to leave comments, you need to log in
Or maybe you don't need to do anything at all? The standard Java date types (java.util.Date/Calendar) have built-in time zone handling and even take daylight savings into account. It is enough to specify (TimeZone.setDefault) the correct time zone in the client and server JVM at runtime (usually it is set automatically), Java will do the rest. Are you sure you're not trying to solve a problem that doesn't exist?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question