Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
GC979447yI'm not using PHP anymore, but I think it was possible directly in 1 Line. Something like $date = date("Y-m-d");
-
@GC97 its actually $date = date('Ymd');
And you could parse the other date with mktime... -
I think this strongly suggests someone who has copied and pasted a "date" function call from somewhere and has no idea what it does. There's a lack of logic there which is very, very scary to me.
-
pajaja17337y@CrankyOldDev I know, right! And these guys made a whole application that was used for almost 10 years... Who knows what else is in there.
Related Rants
I don't even...
undefined
wk58