-1

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

hamzeh_pm
  • 181
  • 11

1 Answers1

0

try this

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC+3:30'

USE_I18N = True

USE_L10N = True

USE_TZ = True

Mehrab
  • 1
  • 3