I have a database (in CSV) with unix timestamps. I try to convert them in LibreOffice Calc into a human readable date. Everything is ok... except a one-day-lag.
For example, my timestamp is -518144400 (in E2 cell). My function is : =E2/86400+DATEVAL("1/1/1970"). I obtain 19572,9583333333 which correspond to 1953-07-31. This on-line calculator confirm the result.
What is the problem ? Just that the right answer is 1953-08-01. First, I thought the timestamps contained a mistake. But, in this PHP calendar, if I paste -518144400 as parameter in the URL, it works. The on-line calendar associate this timestamp to (what I think is) the right answer.
I don't understand what happens. What I missed ? One solution could be adding +1 in my function to correct. But I'm not satisfied, I'd like to understand...