Fix TimeZone.getOffset() call
This commit is contained in:
parent
91b5662a6f
commit
5d892cfd89
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ public class SunriseSunset
|
|||
// Calculate internal representation of timezone offset as fraction of hours from GMT
|
||||
// Our calculations consider offsets to the West as positive, so we must invert
|
||||
// the signal of the values provided by the standard library
|
||||
double dfTimeZoneIn = -1.0 * tzIn.getOffset(dateInputIn) / 3600000;
|
||||
double dfTimeZoneIn = -1.0 * tzIn.getOffset(dateInputIn.getTime()) / 3600000;
|
||||
|
||||
// Copy values supplied as agruments to local variables.
|
||||
dfLat = dfLatIn;
|
||||
|
|
Loading…
Reference in a new issue