M is not for minutes in PHP date function
![](https://nikola-breznjak.com/blog/wp-content/uploads/2015/11/dateNow.jpg)
Ah, it was one of those days when you’re too smart for your own good and you don’t check the docs and falsely assume that m must definitely be minutes in the date function in PHP.
It should be
$dateNow = date("Y-m-d H:i:s");
and not H:m:i!
The offcial docs are clear, one just needs to read them 🙂
Leave a Comment