backcompat stuff and better datetime parsing from class-value-pattern