Jump to content

Peculiar Bug with date() Function


jmajeremy

Recommended Posts

I run a LAMP (Ubuntu Server, Apache2.2, MySQL5.2, PHP5).

 

Strangely enough, date() has decided to stop keeping track of minutes on my server!

A line on my website greets users like this:

The time is <?php echo date("H:m:s")." UTC".date("O"); ?>

 

For some reason, the minutes are frozen at "11". The hours and seconds seem to be displaying correctly, but the minutes never change. So at 8:* PM, the output will always be "20:11:* UTC-0500".

 

Any suggestions? My server's actual clock is keeping time perfectly, and I've tried restarting apache to no avail!

Link to comment
https://forums.phpfreaks.com/topic/183367-peculiar-bug-with-date-function/
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.