Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lib-date tests assume local timezone is UTC #47

@bmcbarron

Description

@bmcbarron

lib-date.lua does a full test of os.date using multiple timestamps, exercising both "local" and "utc" versions of the format string. When the test is run in non-UTC timezones, many of the tests fail.

One alternative would be to adjust the input timestamp by local timezone's utc-offset, before passing it to the local format tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions