Jump to content

[SOLVED] date() always giving "Dec 1969 17:59:59"


avillanu

Recommended Posts

^^ Haha. I type too slow....or too much.

 

date() takes a timestamp. you are getting the timestamp time(), but then you are trying to convert the timestamp to a timestamp again by using strtotime().

 

Remove strtotime():

 

echo date("d M Y H:i:s", $time);

 

-BSIS

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.