11

How to NOT handle dates!

Do not put the date to "mdy" format, today would be 050217.
Working on an intranet for some multi-billion corporation, and was wondering why events from last year were showing.

Last year's events were 28th of October, 2016, and was showing as upcoming events :)

Checked the code, and saw this. Quick fix, turned dates to UNIX timestamp, and it worked.

Comments
  • 0
    All tags, some were not included.

    date, dateformat, no wonder you were fired because you have terrible code you piece of s**te, not laughing at all, love this, how many tags can I put?, how long can the tags be, right now I don't know what to write, my back hurts today, will this get many ++, maybe even 500 so I can get a stressball? If not, I definitely have to buy one, maybe put it on the bill for the client, #YOLO
  • 1
    Ur tags sound like a story enjoyed them more than the rant it self 😂
Add Comment