I have a django-admin command which is handling message sending to different users in different countries.
Each user should get the message at the same date - according to their local timezone.
For example: a user in Paris should get a message every Monday at 10 am (Paris time), and a user in NY should get a message every Monday at 10 am (NY time). What happens is that they both get the message at Monday 10 am GMT.
I can't use the user's browser local timezone, because its a script running independently in my server. Instead, I want to send the message according to a TZ stored in my DB for each users preferences.
How can I send the message according to each user's TZ in my "handle" function?
I was trying to use the "django.utils.timezone.activate" but I am not really sure how to make it work