additional date-handling bug fixes for v0.3.1