'django settings default time zone

here is a question i can use django time zone for utc and it worked fine but when i switch the default time zone to 'Asia/Tehran' it wont work and i get the error

ValueError: Incorrect timezone setting: ASIA/TEHRAN

the actual code in settings.py is:

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Asia/Tehran'

USE_I18N = True

USE_L10N = True

USE_TZ = True

and it is on django time zone list i checked it

the system is ubuntu 20 and django version is 3.2



Solution 1:[1]

try this

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC+3:30'

USE_I18N = True

USE_L10N = True

USE_TZ = True

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mehrab