fixed datetime formatting