Results 1 to 2 of 2

Thread: PHP scripts does not show the correct time

  1. #1
    Join Date
    Nov 2010
    Posts
    12

    Default PHP scripts does not show the correct time

    Hi

    My PHP scripts does not show the correct time.

    Is there any way I can resolve this using my script? I want to display/set time of "US/Central" .

    Regards

    Xpert

  2. #2
    Join Date
    Nov 2010
    Posts
    11

    Default PHP scripts does not show the correct time

    Hello Xpert

    If your PHP scripts do not show the correct time, the reason is that most probably your hosting server is in a different timezone. This can be easily resolved by changing a setting in PHP called date.timezone.

    You can set a specific date.timezone value in PHP using the following option which should be added to your local php.ini file:

    Code:
    date.timezone = "US/Central"
    I trust this resolves the issue you are facing .

    Regards

    Kalpesh Sonar

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •