I need to force any time related operations to GMT/UTC, regardless the timezone set on the machine. Any convenient way to so in code?
To clarify, I'm using the DB server time ...
For example, when I extract from a database a Date() variable, it contains a date with "+04:00" shift.
According to my locale's settings.
So, UTC time is "ourTime" MINUS 4 hours.
I live in North Carolina,btw, which is on the East Side. So I compile and run this code and it print out the same thing. The documentation say that java.util.date try ...
I have been googling around this issue, but could not find clear and definitive documentation.
Assuming I have a UTC time and a TimeZone ID, how do I calculate wall time (= ...