Plugin Directory

Automatic Timezone

What are these cities?

The zoneinfo database uses a method of timezone choices that most people may not be familiar with. Instead of picking a named timezone, you pick a major city close to you that shares your timezone. The reason for this is although there's 24 hours in the day, there's hundreds of different ways of dealing with daylight savings time around the world, and laws and such change these all the time. The zoneinfo database tracks these and stores each different set of settings in a different "named" timezone, named after an area, such as a city, that uses that set of rules. So instead of picking something like "Central Time" or "Greenwich Mean Time", you will choose a city. That determines what set of daylight savings rules you will use. For your convienence, the cities are grouped by continent.

The screenshot shows more information than my screen does!

If you are using PHP 5.2 and up, you will get some extra information such as the time of the next daylight savings switch. This code does not work in versions of PHP previous to 5.2. If your host supports it, please consider switching your hosting service to use PHP 5 and up. Many hosts provide both PHP 4 and 5, but have PHP 4 as the default. PHP 5 is much better and has much better support for this sort of thing. More and more systems are requiring PHP 5 nowadays, and WordPress might be next. Do yourself a favor and ask your hosting service how you can use PHP 5 now. Beat the rush.

The plugin won't activate, it says it can't find a list of timezones.

The plugin won't work on some systems. Notably, Windows servers running PHP 4. Upgrade to PHP 5.

It's not working, and I'm using PHP 4 on a non-Windows system.

This plugin works best with PHP 5.1 and up, but it should also work okay on some PHP 4 systems with Linux/Unix hosting. If it doesn't, email me and I'll try to help. It does try a few different methods, but if it won't activate, then it also won't work, so don't try to force it or anything.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (1 reporting)

100%
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(14 ratings)