Skip to main content

Models to store and scripts to load timezone shapefiles to be usable inside a GeoDjango application.

Project description

This app provides models to store Timezone data from a couple sources:
  • Timezone Boundary Builder ( which uses OpenStreetMap data to generate shapefiles as well. You can download
  • the Creative Commons Zero shapefile (the _mp version which uses multipolygon fields) published at, as well as a script to load the data into your database. (last version tested was data from May 28, 2016) This data source is no longer maintained by its author.

It’s useful for applications where the user enters times related to a location (i.e. specifying a pickup time for a rental car, or business hours)

It is useful for finding tzids you can feed to datetime and Django from a geometry if you know WHERE that time is.

fixtures/ contains timezones.json which includes an archived copy of the data for the United States for testing purposes. As this data may change, make sure you use the shapefile and not this data for your application.

Tested with Django 1.11 on Python 2.7

To install, add ‘timezones’ to your installed apps and run migrate

Loading is accomplished by using load_timezones –path=<path_to_shapefile_directory>`, the app will automatically add the appropriate “tz_world_mp.shp” to the end of the path.

IF you are using the Creative Commons Zero shapefile from that is no longer being updated, you will need to pass –tz_world to

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for geodjango-timezones, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size geodjango-timezones-1.0.tar.gz (626.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page