Issue #2314645 by herom, jsobiecki, Pawelgorski87, quietone, ashutoshsngh, zaporylie: Correct the type of $pattern in DateFormat (cherry picked from commit fb1847b9)