In the JS client the time stamp is then converted to JS time stamps, i.e. millisconds where zero equals Jan 01 1970.
1 2 3 4 5
It’s likely the developer thought: “Well, it’s millisecond instead of second. Therefore I multiply by 1,000. But then I am 70 years in the future and I have to substract 70 years and everything will be ok.”
After thinking a while I came to the conclusion: Of course not!
The developer made the assumption that there are as many leap years
between 1900 and 1970 as between
ts+70. Obviously that
assumption does not hold for all time stamps. And therefore sometimes
So a better solution would be to substract all seconds between 1900
and 1970 from
time stamp. Perhaps best would be to do the conversion in the Lisp