Epoch Fail
by Mark Bowytz
in CodeSOD
on 2013-07-09
One of Michael's employer's clients wanted a system to catalog and retrieve security videos. The resulting product was partly written in C++, partly written in PHP. The code is like poetry...really, really bad poetry.
One day, the client complained that the dates and times weren't being recorded right. Michael took a look in the database and double-checked the UNIX timestamps of a few on the web page. He confirmed that yes - they were recorded just fine. Surely the client must have been imagining things, Michael thought as he closed the bug as 'couldn't reproduce'.