Skip to content

Inconsistent timezone offset handling with GNU date #149

Open
@yuankunzhang

Description

@yuankunzhang

GNU date accepts a timezone code plus an offset between -24 and +24 (e.g. m+24, y-24).

We are using chrono::FixedOffset to represent offsets, which accepts offsets only in the range -24 to +24. Note that the literal m+12 will overflow because the letter m already denotes a +12 offset.

We should re-design the underlining data models to achieve the GNU date behavior.

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