Skip to content

Warn or error if 2012-2022 dataset is used? #1035

@fschwahn

Description

@fschwahn

Moment-timezone version which you use:

Version: 0.5.40

Issue description:

I just spent a lot of time investigating why suddenly DST were not applied anymore in 2023, but still worked in the prior years (including, but not limited to digging through the IANA changelog).

I included this file years ago, and I wasn't even aware anymore that there's such a thing as a limited dataset. I now replaced it with moment-timezone-with-data-10-year-range, which should be future-proof.

Ideally, there would be a way to raise an error, but I get that backwards compatibility concerns make that impossible. But maybe it's possible to at least log a big warning in case this outdated dataset is used?

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