Jump to content

[SOLVED] is date in server or in client?


homer.favenir

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!

Archived

This topic is now archived and is closed to further replies.

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