evolvedmicrobe / beast-mcmc

Automatically exported from code.google.com/p/beast-mcmc
GNU Lesser General Public License v2.1
0 stars 1 forks source link

Guess dates function is affected by timezone of user #704

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The precise decimal date produced by the Guess Dates function in the Tip Dates 
panel of BEAUTi is dependent on the time zone of the machine being used. 
Potentially these could be out by +- 12 hours. Most likely the date arithmetic 
is using the local timezone. 

Fix is likely to require a locale fixed to GMT for date calcs.

Also probably good idea to round decimal year to nearest hour. 

Original issue reported on code.google.com by ramb...@gmail.com on 14 Oct 2013 at 9:12

GoogleCodeExporter commented 9 years ago
Fixed by using setTimeZone(TimeZone.getTimeZone("GMT")) everywhere that Java 
Date classes were used or parsed.

Original comment by ramb...@gmail.com on 14 Oct 2013 at 11:01