PHP date formatting is a war crime
T
time_lord +2800
PHP date format: 'Y-m-d H:i:s'. Y for 4-digit year, m for month, d for day, H for 24h hour, i for minutes (???), s for seconds. Why is minutes 'i'? Because 'm' was taken by month. Galaxy brain.
J
js_dev_crying +1200
To be fair, JavaScript's Date object is also a mess. But at least we know it's a mess. PHP acts like this is normal.
T
time_lord +3400
My favorite part is that 'D' gives you 'Mon', 'Tue', etc. but 'l' (lowercase L) gives you 'Monday', 'Tuesday'. The letter l. For the word that starts with the day name. Sure.
7,800 pts Source: manual
View original →