plail Posted November 22, 2008 Share Posted November 22, 2008 i'm pretty much a complete newbie when it comes to php, so i'm looking for help from those with expertise... i recently noticed that the timestamp on my comment form is displaying this for every post: Wednesday, 12.31.69 @ 17:00pm and I'm receiving this error: Warning: mktime() expects parameter 1 to be long, string given in /home/underth8/public_html/writing/inc_rate.php on line 254 does anyone have any idea how i might solve this problem? this might not be helpful, but my vague guesses are as follows: 1) some error that i inadvertently introduced on the php document that contains my comment form 2) recently moving to a new time zone 3) the switch to daylight savings time...? any ideas would be greatly appreciated. and thanks for taking the time to read this post. best wishes! http://www.underthesugar.com/writing/hidden_portland.php Link to comment https://forums.phpfreaks.com/topic/133798-mktime-expects-parameter-1-to-be-long/ Share on other sites More sharing options...
Mchl Posted November 22, 2008 Share Posted November 22, 2008 What is the date format you pass to this function? You could possibly use strtotime instead of mktime Link to comment https://forums.phpfreaks.com/topic/133798-mktime-expects-parameter-1-to-be-long/#findComment-696314 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.