Jump to content
MakeWebGames

Timezones


Recommended Posts

Hi! I made a timezone dropdown for timezone selection. Did basic testing. Its a rather small list of cities/places. I only included one city/option per time-zone. I'm not responsible for inaccuracies or daylight savings time. *Shrugs*

SQL

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

preferences.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

header.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Anyway, I hope you like it. Took a good hour just trying to find the timezones. Lol!

Link to comment
Share on other sites

Pretty good and all but there are much easier ways to go about this and could have saved you some time as well ;)

You can take a look at this link:

http://stackoverflow.com/a/1727150/3233912

But basically there is a timezone function that will spit the timezones in an array making a select list just that much easier and checking if they selected a valid tz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...