Python: Django: Pass User Time Zone Into View

I’m wondering what the best way is to get the users time zone and pass it into a view that way I can do a DB query based on that. I dont want the user to have to specify.

I got django-easy-timezones working but I’m not sure how I can get the value in a view…or if its even possible with this app.

So far from what I have read it seems like Jquery is the best way, however I’m still really unsure. Any tips, suggestions or direction is appreciated.


Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.