fixed error in parsing day
fixes #1