Plugin Directory

Use Client's Time Zone

Sets the default time zone for PHP scripts to that of the IP number of the client.

This plugin retrieves the time zone of the IP number of the client using http://api.easyjquery.com/ips/. It then uses the PHP date_default_timezone_set() function to set the default time zone. Since it runs just after all of the plugins are loaded, it changes the time zone for all of the PHP that follows. It is useful in cases where one wants users to see certain posts on certain days. E.g., if the post slug contains the day number, like "xyz-daynr," then the post can be specified by "$slug = 'xyz'.date(j);" in a theme template.

Copyright 2012 M.D. Green, SaeSolved:: LLC

Requires: 1.5 or higher
Compatible up to: 3.4.2
Last Updated: 2012-9-20
Downloads: 330

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1