Date bug corrected, fixes #327