|
-
Mar 2nd, 2006, 04:46 AM
#1
Thread Starter
New Member
time change based on country
HI
how can we change the time display based on the country name chosen in the webiste.
if i am not clear..here goes my detail explanation..
i have a site which has multilanguage translation.when a language is chosen in the combo box the site contents changes according to the language selected. I want the time display to change accodingly.
how can we do that ?
Thanks in advance
keats
Keep Smiling!! 
-
Mar 2nd, 2006, 08:45 AM
#2
<?="Moderator"?>
Re: time change based on country
date_default_timezone_set() will set the times correct to a specific timezone.
Heres the a list of timezones for Europe to use with it, there are others just follow the links on the page.
http://uk2.php.net/manual/en/timezones.europe.php
-
Mar 2nd, 2006, 11:39 PM
#3
Thread Starter
New Member
Re: time change based on country
i am using php 4.4 version..think this function doesnt work in this version.its compatible for >5.1
Keep Smiling!! 
-
Mar 3rd, 2006, 08:17 AM
#4
<?="Moderator"?>
Re: time change based on country
Ahh then no. You can do it by manually add/subtracting the time difference from the current time to suit your users needs. mktime will e able to help you do this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|