Skip to content

.midnight() always uses the current date instead of the requested Date. #4

@Elyahu41

Description

@Elyahu41

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions