Skip to content

eu_dst.h wrong calculation od Daylight Saving Time #277

Open
@vprheli

Description

@vprheli

Calculation use wrong conditions. Please correct
if (month == MARCH) {
if (mday < d)
return 0;
if (mday > d)
return ONE_HOUR;
if (hour < 2)
return 0;
return ONE_HOUR;
}
if (mday < d)
return ONE_HOUR;
if (mday > d)
return 0;
if (hour < 2)
return ONE_HOUR;
return 0;

And check also usa_dst.h if there isn't similar error
Vladimir

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions