Fix string representation of DateTime object