Jump to content

Server time +8 hours?


woolyg

Recommended Posts

Hi all,

 

I'm inputting a DATETIME timestamp of $now into my table

 

<?
$now = date("Y-m-d H:i:s");
?>

- which enters the exact time of update into the table. The problem is, is that I'm in Dublin (GMT) and the hosting server is in the US - 7 hours behind - so if I entered data at exactly midday in dublin, the value displayed is 5am.

Can someone guide me as to how I can alter the variable [b]$now[/b] to show Dublin time?

Any help appreciated,
Woolyg

Link to comment
https://forums.phpfreaks.com/topic/62963-server-time-8-hours/
Share on other sites

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.