Here is the code I am using:
let moonTimes = try MoonTimes.compute()
.on(userChosenDate)
.at(lat, long)
.timezone(timezone)
.midnight()
.execute()
In the java version of the package, this always limits the calculations to one day and makes sure that the calculations only apply to the current calendar day set in the "on" method. However, in the iOS package, .midnight() always resets the date to the current date. Ignoring what was set in the "on" method.
Here is the code I am using:
In the java version of the package, this always limits the calculations to one day and makes sure that the calculations only apply to the current calendar day set in the "on" method. However, in the iOS package, .midnight() always resets the date to the current date. Ignoring what was set in the "on" method.