Forum Moderators: coopster

Message Too Old, No Replies

timezones - make a list of all zones for surfer to chose

timezone chose all countries

         

Snurk

12:59 pm on Aug 1, 2005 (gmt 0)

10+ Year Member



Dear Sirs and Madams,

I want to create a script where the surfer can chose their respective timezones, and then IŽll use the putenv function to display the correct time and date.

I know there are timezone information on my freeBSD server at /usr/share/zoneinfo/, but I dont know how to convert that information into useful dropdown menus or lists.

Has anyone done or thought about doing this? Any help would be great!

Sincerely,

SNURK / Erik

dreamcatcher

2:01 pm on Aug 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Snurk, welcome to Webmaster World. :)

When I`m after something like this my first port of call is the PHP script repository. You might find a class on there that does exacty what you want.

[phpclasses.org...]

dc

Snurk

4:15 pm on Aug 2, 2005 (gmt 0)

10+ Year Member



Thank you :-)

I failed to find a solution on phpclasses.org (I did find many other useful scripts though).

Anyone else who might have any suggestion? 0:)

/// SNURK

Snurk

8:20 pm on Aug 4, 2005 (gmt 0)

10+ Year Member



Problem solved, I found a script that detects countrycodes based on your IP (look at phpclasses.org). And I converted the zone.tab into a MySQL database.

/// SNURK

[edited by: jatar_k at 8:25 pm (utc) on Aug. 4, 2005]
[edit reason] no emails thanks [/edit]

pureform

9:54 pm on Aug 4, 2005 (gmt 0)

10+ Year Member



You ought to be careful because some of those IP ranges could be out of date. I downloaded something similar, and it told me "How's the weather in Canada" ....... When I live in Oregon.

jatar_k

9:56 pm on Aug 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you could also use this if you want geo targetting, I have used it with great success

[ip-to-country.webhosting.info...]

Dijkgraaf

2:33 am on Aug 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you looked under Control Panel, System Preferences on this site?
It has a drop down for select Time Zone Offset.