Skip to content

getChatzos does not return null when sunrise is null #264

@MichaelJBerk

Description

@MichaelJBerk

I have been testing KosherJava against some of the tests in Moshe Dicker's rust port (specifically, the Polar Day test ).
I've found that when running getChatzos using the parameters used in the location day test, the method returns a value, rather than the expected result null. Other methods on the ZmanimCalendar seem to return null on that day as expected.

To recreate this issue:

double lat = 69.6492;
double lon = 18.9553;
double elev = 0;
TimeZone tz = TimeZone.getTimeZone("Europe/Oslo");

GeoLocation loc = new GeoLocation("Polar Location", lat, lon, elev, tz);
ComprehensiveZmanimCalendar czc = new ComprehensiveZmanimCalendar(loc);
czc.getCalendar().set(2017, 6, 21);
System.out.println(czc.getChatzos().toString());

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