From 0dd1d499ae1a3e6b0e323a81998613f5260c96e9 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 13 Apr 2017 14:23:42 -0400 Subject: [PATCH] Restrict parse of %Z to valid timezone names and abbrev. --- date.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/date.html b/date.html index 917ec22..4b7e0d6 100644 --- a/date.html +++ b/date.html @@ -26,7 +26,7 @@

Howard E. Hinnant
-2017-04-02
+2017-04-13

date

@@ -8142,8 +8142,10 @@ are optional: -4:30. %Z -The time zone abbreviation. A single word is read as specified by the extraction -operator for std::basic_string. +The time zone abbreviation or name. A single word is parsed. This word can only +contain characters from the basic source character set ([lex.charset] in the +C++ standard) that are alphanumeric, or one of '_', '/', +'-' or '+'.