Fixed a bug with dateOffsettedBySeconds