stop comparing dates as strings, fixes #30