Cleanup usage of time interval to avoid DST and leap year issues.