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
-
plusgut60377yThe developer made a until-date, but didn't give it a actual value and because of that the not existing value got casted to 0. And 0 is the unix-timestamp for 1.1.1970.
Why the date is 6 months later? I would need to look into the actual code. -
plusgut60377y@naghen yes probably, I guess the code should check if it's longer then 6 month from now into the future. But the now fuction doesn't do it's job as supposed. But that's just a lucky guess I'm doing.
-
kabbura3427y@plusgut
Maybe the code uses milliseconds but the value it got for max Date is in seconds (long). Especially if the check depends on server time (and not device time). -
plusgut60377y@sudani93 I can't follow your train of thought. Why would it be that result, if the value is in miliseconds instead of seconds?
When it's just of by a thousand it should not be exactly at 1970. Or what am I missing? -
plusgut60377y@sudani93 true, but that's good thinking and would be a possibility to invest in that corner, if you had to debug it.
Wait, what?!?
undefined
date error