Fix parse_RFC_850()

The function was identical to parse_RFC_1123(), and the worst thing
is that tests with CMake weren't failing,
while running them with Meson revealed the issue.
parent 0d09ab98
......@@ -32,7 +32,7 @@ bool parse_RFC_1123(const std::string &s, time_point &tp) {
bool parse_RFC_850(const std::string &s, time_point &tp) {
std::istringstream in{s};
in >> date::parse("%a, %d-%b-%y %T %Z", tp);
in >> date::parse("%A, %d-%b-%y %T %Z", tp);
return !in.fail();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment