{"id":14972847,"url":"https://github.com/ip2location/django-ip2location-timezone","last_synced_at":"2025-04-23T14:31:37.952Z","repository":{"id":57420499,"uuid":"196340317","full_name":"ip2location/django-ip2location-timezone","owner":"ip2location","description":"A simple Django package that can help you easily display your website visitor the time according to their location.","archived":false,"fork":false,"pushed_at":"2019-07-12T01:16:35.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T12:34:39.741Z","etag":null,"topics":["django-framework","django-ip2location","django-packages","geolocation","ip-geolocation","ip2location","ip2location-timezone"],"latest_commit_sha":null,"homepage":"https://www.ip2location.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ip2location.png","metadata":{"files":{"readme":"readme.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-11T07:13:54.000Z","updated_at":"2020-04-06T17:29:23.000Z","dependencies_parsed_at":"2022-09-16T09:21:41.003Z","dependency_job_id":null,"html_url":"https://github.com/ip2location/django-ip2location-timezone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fdjango-ip2location-timezone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fdjango-ip2location-timezone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fdjango-ip2location-timezone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fdjango-ip2location-timezone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ip2location","download_url":"https://codeload.github.com/ip2location/django-ip2location-timezone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250451786,"owners_count":21432897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django-framework","django-ip2location","django-packages","geolocation","ip-geolocation","ip2location","ip2location-timezone"],"created_at":"2024-09-24T13:47:38.037Z","updated_at":"2025-04-23T14:31:37.726Z","avatar_url":"https://github.com/ip2location.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django IP2Location Time Zone\n\nDjango IP2Location Time Zone package enables you easily display your website visitor the time baased on their geo location derived from the IP address. This package uses **[IP2Location Web Service](https://www.ip2location.com/web-service/ip2location)** for IP lookup and time zone information.\n\n## Requirements\n\n1. Python 2.7 and above.\n2. Django 1.11 and above.\n3.  **[IP2Location Web Service](https://www.ip2location.com/web-service/ip2location)** API Key. You can get a trial API key from [IP2Location.com](https://www.ip2location.com/register?id=1005). \n\n## Quick Start\n\n1. Install this package from PyPI: \n\t```bash\n\tpip install django-ip2location-timezone\n\t```\n\t\n2. Add \"*ip2location_timezone*\" to your INSTALLED_APPS setting in settings.py:\n\t```python\n    INSTALLED_APPS = (\n      ...\n      'ip2location_timezone',\n    )\n   ```\n   \n1. Add \"*IP2locationTimezoneMiddleware*\" to your MIDDLEWARE_CLASSES in settings.py:\n\t```python\n\tMIDDLEWARE_CLASSES = (\n      ...\n      'ip2location_timezone.middleware.IP2locationTimezoneMiddleware',\n    )\n   ```\n   \n4. Add your **[IP2Location Web Service](https://www.ip2location.com/web-service/ip2location)** API Key in settings.py:\n\t```python\n\tIP2LOCATION_API_KEY = 'YOUR_API_KEY'\n   ```\n   \n5. In your template, add the following code to display the user time zone and current time:\n\t```python\n\t{% load tz %}\n\t{% localtime on %}\n\t\t{% get_current_timezone as TIME_ZONE %}\n\t\tYour timezone is {{ TIME_ZONE }}.\u003cbr/\u003e\u003cbr/\u003e\n\t\tIt is {% now \"DATETIME_FORMAT\" %}\n\t{% endlocaltime %}\n\t```\n\n\n## Support\n\nEmail: [support@ip2location.com](mailto:support@ip2location.com).\n\nURL: [https://www.ip2location.com](https://www.ip2location.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fdjango-ip2location-timezone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fip2location%2Fdjango-ip2location-timezone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fdjango-ip2location-timezone/lists"}