Datetime converter fix