CodeSOD: Sorts of Dates
The Daily WTF
MARCH 27, 2024
We've seen loads of bad date handling, but as always, there's new ways to be surprised by the bizarre inventions people come up with. The "date" field in our records is a string. Elsewhere in the code, we use usort , passing it the wonderfully named $data variable, and then applying cmp to sort it.
Let's personalize your content