14
ganey
7y

Came across this in a site work took on from another agency. Bad JS calculation of someone's age, there was many other terrible date manipulation parts throughout the site

Comments
  • 2
    That looks like a WP theme developer trying to develop a WP plugin.
  • 2
    Apart from that did you know safari doesnt support creating a new date from a string. Yeah haha its a piece of shit but keep in mind
  • 2
    Ah! A PHP dev created this. Makes sense...
  • 1
    @mantekillah yeah it was a WP Dev, writing code for a non WP project. This is one of the smallest crazy date functions in the site. The database had day month and year stored in separate columns..
Add Comment