Skip to content

Date calculation does not take daylight savings changes into account #22

@Qarj

Description

@Qarj

Calculating yesterday's date by subtracting 86400 seconds won't work when there are 25 or 23 hours in the day.

There is a solution here by Chas Owens that only uses core Perl modules:

https://stackoverflow.com/questions/3506475/how-do-i-get-yesterdays-date-using-localtime

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