Skip to content

Commit

Permalink
Update to version 1.2.1.4: two bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohne authored Nov 10, 2018
1 parent a535664 commit 5fcfd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JulianDatesClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private const double
private const int
intSecondsOfDay = 86400;

public static double CalcJulianDate() => DateTime.Now.ToOADate() + doubleJulianDateCoefficient;
public static double CalcJulianDate() => DateTime.Now.ToUniversalTime().ToOADate() + doubleJulianDateCoefficient;

public static double CalcJulianDate(DateTime date) => date.ToOADate() + doubleJulianDateCoefficient;

Expand Down

0 comments on commit 5fcfd26

Please sign in to comment.