m isn't minute, it is month. i is minute.
Question
In my database, there's a field with "00:00:00" and a field with "15:00:00".
When I echo this in my php page with format('H:m')
they show like "00:01" and "15:01". Without that format, they show like "00:00:00" and "15:00:00".
Does anyone know what could possibly cause this?
La solution
Autres conseils
That's because it is January. Try H:i
instead.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow