Description:
This errors occurs when you keep your dates in unix timestamp format (represented as number of seconds from 1970/01/01). When we want to change a date to the next day, we can simply add as many second as there are in one day, which is 24 * 60 * 60 = 86400 seconds.
However when we try to do this for date: 2010-10-31, it is not working.
Solution:
Stop adding seconds to dates represented by unix timestamp. Instead, use: