Results 1 to 4 of 4

Thread: time change based on country

  1. #1

    Thread Starter
    New Member keats's Avatar
    Join Date
    Feb 2006
    Location
    India
    Posts
    15

    Arrow 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!!

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    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

  3. #3

    Thread Starter
    New Member keats's Avatar
    Join Date
    Feb 2006
    Location
    India
    Posts
    15

    Unhappy 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!!

  4. #4
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    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
  •  



Click Here to Expand Forum to Full Width