The error does not occur at 2 am but between 11 pm and 1 am, when you add 86400 seconds with a shorter or longer day !