getdate(x) does not return Unix time corresponding to x, but Unix time plus one
Reported by Carlo Cabianca
Originally assigned to Charlotte HECQUET
-- Bug description --
getdate(x) does not return Unix time corresponding to x, but Unix time plus one hour.
-- Scilab error message --
-->getdate(0)
ans =
1970. 1. 1. 1. 5. 1. 1. 0. 0. 0.
## Comment ##
Notice that 7th element from left is the hour of the day as a number between 00 and 23. It should therefore equal to 0 and not to 1.
-->getdate(60*60)
ans =
1970. 1. 1. 1. 5. 1. 2. 0. 0. 0.
## Comment ##
In the above, the number of hours should be 1, and not 2.
-- How to reproduce the bug --
Start SciLab.
Type getdate(0) and press RETURN.