So I have been creating a simple site where I need to display the timezones of the time a post was created. So far I have set it to Victoria, Australian time, because it is my timezone, but I want people from other countries to have their own timezones on the posts.
I know it sounds silly, but I tried to add multiple timezones to the TIME_ZONE variable in settings.py, but I learnt that does nothing but cast errors.
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Australia/Victoria'
So when I put multiple timezones in, I expected it to dynamically show the time based on where you are, but it didn't, I just got a syntax error.
Aucun commentaire:
Enregistrer un commentaire