A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Miserlou/django-easy-timezones below:

Miserlou/django-easy-timezones: Easy timezones for Django based on GeoIP

To hook into the Timezone detection event to, say, save it to the request's user somewhere more permanent than a session, do something like this:

from easy_timezones.signals import detected_timezone	

@receiver(detected_timezone, sender=MyUserModel)
def process_timezone(sender, instance, timezone, **kwargs):
	if instance.timezone != timezone:
    	instance.timezone = timezone
    	instance.save()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4