Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7691377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:36:32+00:00 2026-05-31T20:36:32+00:00

In Django documentation for setting timezone , the list of available choices for timezone

  • 0

In Django documentation for setting timezone, the list of available choices for timezone are actually postgres timezone parameter strings. So it seems Django uses Postgres for retrieving time.

If so, then the problem is that IST is used to denote both Indian & Israel Standard Time, but postgres uses IST for Israel Standard Time (potentially confusing over a 6th of world’s population) and there is NO timezone string for Indian Standard Time.

Not just that, Postgres also misses timezone for some other countries like Nepal (GMT+5:30) and some Pacific Islands.

So, is there any way by which I can set custom timezone string (like GMT+5:30 for India, GMT+5:45 for Nepal, etc.) in Postgres or Django?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:36:34+00:00Added an answer on May 31, 2026 at 8:36 pm

    For India:

    SELECT now() AT TIME ZONE 'Asia/Calcutta';
    SELECT now()::timestamp AT TIME ZONE 'Asia/Kolkata';
    SELECT now()::timestamp AT TIME ZONE '5:30';
    

    For Nepal:

    SELECT now()::timestamp AT TIME ZONE 'Asia/Katmandu';
    SELECT now()::timestamp AT TIME ZONE 'NPT';
    

    To set the time zone for the whole session:

    SET time zone 'Asia/Calcutta';
    

    To reset it (to the time zone set in postgresql.conf:

    RESET time zone;
    

    Find more in the system views pg_timezone_names and pg_timezone_abbrevs

    SELECT *
    FROM   pg_timezone_names
    WHERE  utc_offset BETWEEN '05:00:00' AND '06:00:00'
    ORDER  BY utc_offset;
    
    SELECT *
    FROM   pg_timezone_abbrevs
    WHERE  utc_offset BETWEEN '05:00:00' AND '06:00:00'
    ORDER  BY utc_offset;
    

    PostgreSQL manual about AT TIME ZONE construct. About time zones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Regarding setting Django's USE_I18N = False in settings.py the documentation say: A boolean that
I have installed django-mptt and have followed the documentation regarding setting up a Django
I've seen some nifty code on django-ratings documentation and like to create something similar.
There's no much documentation on how to deploy a Django project with Spawning and
I am having problems using django-tagging . I try to follow the documentation but
I'm totally new to django, and I'm using its documentation to get help on
Django creates a search box on the list display page when the field search_fields
I have read the Django documentation (For reference, https://docs.djangoproject.com/en/1.3/intro/tutorial01/ ), but I'm still having
I'm creating custom template tags for my django site. I've followed the django documentation
I'm currently looking at the the documentation for Django sites: http://docs.djangoproject.com/en/dev/ref/contrib/sites/#ref-contrib-sites which explains how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.