Skip to content

fix: replace deprecated timezone "Asia/Calcutta" with "Asia/Kolkata" (#2538)#2745

Closed
Keerthana-webdev wants to merge 1 commit intofossasia:devfrom
Keerthana-webdev:fix-timezone-name
Closed

fix: replace deprecated timezone "Asia/Calcutta" with "Asia/Kolkata" (#2538)#2745
Keerthana-webdev wants to merge 1 commit intofossasia:devfrom
Keerthana-webdev:fix-timezone-name

Conversation

@Keerthana-webdev
Copy link

@Keerthana-webdev Keerthana-webdev commented Mar 12, 2026

Fixes #2538

Description

The timezone label "Asia/Calcutta" is outdated and has been replaced with the correct and current timezone name "Asia/Kolkata".

Changes Made

  • Replaced "Asia/Calcutta" with "Asia/Kolkata" in the relevant configuration file.

Type of Change

  • Bug fix (minor update)

Checklist

  • Code follows the repository guidelines
  • Changes tested locally
  • Issue referenced correctly

Summary by Sourcery

Bug Fixes:

  • Replace deprecated timezone label "Asia/Calcutta" with the correct "Asia/Kolkata" entry in the event timezone choices.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Mar 12, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the event timezone choices in the initial base migration to use the modern IANA identifier "Asia/Kolkata" instead of the deprecated "Asia/Calcutta" while keeping the rest of the choices list unchanged.

Entity relationship diagram for updated Event timezone choices

erDiagram
  Event_before {
    char_32 timezone
    string choice_Asia_Calcutta
  }

  Event_after {
    char_32 timezone
    string choice_Asia_Kolkata
  }

  Event_before ||--|| Event_after : migrates_to
Loading

File-Level Changes

Change Details Files
Replace deprecated timezone identifier with current IANA name in event timezone choices.
  • Updated the timezone choices tuple in the Event timezone CharField to remove "Asia/Calcutta" and ensure "Asia/Kolkata" is used instead
  • Left all other timezone choices, defaults, help text, and field attributes unchanged to avoid unintended schema changes
app/eventyay/base/migrations/0001_initial.py

Assessment against linked issues

Issue Objective Addressed Explanation
#2538 Replace the outdated timezone label "Asia/Calcutta" with "Asia/Kolkata" everywhere it is used in the application configuration so that the UI displays "Asia/Kolkata" instead of "Asia/Calcutta".

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Instead of editing 0001_initial.py, create a new schema/data migration that updates the timezone choices and safely maps any existing Asia/Calcutta records to Asia/Kolkata to avoid breaking existing databases or migrations.
  • The updated choices list now contains ('Asia/Kolkata', 'Asia/Kolkata') twice; please deduplicate this entry so the choices remain clean and unambiguous.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Instead of editing `0001_initial.py`, create a new schema/data migration that updates the timezone choices and safely maps any existing `Asia/Calcutta` records to `Asia/Kolkata` to avoid breaking existing databases or migrations.
- The updated `choices` list now contains `('Asia/Kolkata', 'Asia/Kolkata')` twice; please deduplicate this entry so the choices remain clean and unambiguous.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Sak1012 Sak1012 closed this Mar 19, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in Eventyay Next Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Replace outdated timezone label "Asia/Calcutta" with "Asia/Kolkata"

2 participants