Fix Handling time patterns with quotes (dotnet/coreclr#24589)