Jump to content

getDate returns computer date not the current date?


godsent

Recommended Posts

I found this code to get current date with timezone, but the problem is that this returns my current computer date, for example if I set computer date to 2001, echo $date, gives me that today is 2001.

 

 

 

	$timezone = 2;
$date = gmdate("Y/m/j H:i:s", time() + 3600*($timezone+date("I")));

 

Possible option that is because my computer is my host?

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.