I have the timezone set on the server to BST (British Daylight Savings Time), and the date being passed into the function was calculated in UTC.
On the Java Oracle site, it simply refers to comparing the time as “now”, but will this “now” time be the same timezone as set or will it be the one set on the server it is running on?
There is no timezone in the
java.util.Date, it’s effectively the timezone of the JVM it’s running in.My advice, if you need to work with timezones, use Joda