Jump to content

Recommended Posts

im in the philippines, and my webhost is in the US.

Phils date is ahead of 1 day in the US.

e.g.

phils current date = 01/23/2009

US current date = 01/22/2009

 

my problem is, my web application need real time for daily log.

so i get a late date.

 

what am i supposed to do?

any advice?

 

thanks

 

 

i paste

date_default_timezone_set( "Asia/Manila" );

in my header.

 

but there is an error

 

Fatal error: Call to undefined function: date_default_timezone_set() in /home/mafeegro/public_html/tracker/header.php on line 132

 

oh my gosh! my php configuration in cpanel is in "system default"!, i change it to php5,

and page <?php ini_set( "date.timezone"  ,  "Asia/Manila" ) ?> in my header.php

 

now i have current time of my country....

 

thanks guys! youre all a great help!

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.