fixed datetime parsing