[php] (bug-fix:major) Propertly format a string in a date-time.