镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Nodejs does not recognize the changes to Africa/Cairo timezone changes #47818

Description

@abumostafa

Version

18.6.0

Platform

Linux 86892fc3d811 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 Linux

Subsystem

No response

What steps will reproduce the bug?

On 28th of April, there was a decision to use the DST in Egypt. However, Nodejs did not recognize the change

https://www.timeanddate.com/time/change/egypt

Nodejs time

Welcome to Node.js v18.16.0.
Type ".help" for more information.
> new Date().toLocaleString('en-US', { timeZone: "Africa/Cairo" })
# '5/2/2023, 1:34:31 PM'
>

Machine time

TZ=Africa/Cairo date
# Tue May  2 14:35:06 EEST 2023

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

there must be an update to the date library to recognize the recent changes

What do you see instead?

time without DST

Additional information

No response

Activity

  1. mscdex commented on May 2, 2023

    @mscdex
    Contributor

    The change is in version 2023a of the timezone database, which has yet to land in v18.x. However, v20.x includes 2023c if using v20.x is an option for you.

  2. abumostafa commented on May 2, 2023

    @abumostafa
    Author

    The change is in version 2023a of the timezone database, which has yet to land in v18.x. However, v20.x includes 2023c if using v20.x is an option for you.

    Thanks @mscdex. an upgrade was possible.

  3. bnoordhuis commented on May 3, 2023

    @bnoordhuis
    Member

    Good to hear. I'll close this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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