make date time php compliant