Jump to content

Correcting PHP date time on server?


random1

Recommended Posts

Hi,

 

I'm using PHP and Apache (latest versions).

 

I'm using the code:

 

$fulldatetime = date("l, jS") . " of " . date("F Y") . "<strong>" . date(" g:i A") . " AEST</strong>";

 

to get the full date on the server. But the time is incorrect, it displays:

 

Sunday, 30th of December 2007 1:05 AM AEST

 

instead of:

 

Sunday, 30th of December 2007 12:13 PM AEST

 

How can I set the date and time to the correct one?

Link to comment
https://forums.phpfreaks.com/topic/83670-correcting-php-date-time-on-server/
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.