Fix quoting of some date time patters. Fixes #11363