Skip to content

Commit

Permalink
Rename Asia/Calcutta to Asia/Kolkata
Browse files Browse the repository at this point in the history
In 2008, the timezone identifier Asia/Calcutta was renamed to
Asia/Kolkata due to the widespread adoption of the new city name over
the old one.

While the Asia/Calcutta alias still points to the Asia/Kolkata timezone,
it's worth noting that Debian unstable has relocated this alias to the
tzdata-legacy package, which is not included in the default
installation.

To ensure compatibility and consistency, it is recommended to use
Asia/Kolkata directly rather than relying on the Asia/Calcutta alias.

This change aligns with the current naming conventions.
  • Loading branch information
EdwardBetts authored and maread99 committed Oct 14, 2023
1 parent a900da8 commit 7442f2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exchange_calendars/exchange_calendar_xbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,16 +426,16 @@ class XBOMExchangeCalendar(PrecomputedExchangeCalendar):
"""
Exchange calendar for the Bombay Stock Exchange (BSE, XBOM).
Open Time: 9:15 AM, Asia/Calcutta
Close Time: 3:30 PM, Asia/Calcutta
Open Time: 9:15 AM, Asia/Kolkata
Close Time: 3:30 PM, Asia/Kolkata
Due to the complexity around the BSE holidays, we are hardcoding a list
of holidays back to 1997, and forward through 2023. There are no known
early closes or late opens.
"""

name = "XBOM"
tz = ZoneInfo("Asia/Calcutta")
tz = ZoneInfo("Asia/Kolkata")
open_times = ((None, time(9, 15)),)
close_times = ((None, time(15, 30)),)

Expand Down

0 comments on commit 7442f2a

Please sign in to comment.