Skip to content

Commit 902d610

Browse files
committed
fix a logic error
1 parent dd52233 commit 902d610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: include/fmt/chrono.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ struct formatter<weekday, Char> : private formatter<std::tm, Char> {
21142114
auto it = ctx.begin(), end = ctx.end();
21152115
if (it != end && *it == 'L') {
21162116
++it;
2117-
use_tm_formatter_ = localized_ = true;
2117+
localized_ = true;
21182118
return it;
21192119
}
21202120
use_tm_formatter_ = it != end && *it != '}';
@@ -2174,7 +2174,7 @@ struct formatter<month, Char> : private formatter<std::tm, Char> {
21742174
auto it = ctx.begin(), end = ctx.end();
21752175
if (it != end && *it == 'L') {
21762176
++it;
2177-
use_tm_formatter_ = localized_ = true;
2177+
localized_ = true;
21782178
return it;
21792179
}
21802180
use_tm_formatter_ = it != end && *it != '}';

0 commit comments

Comments
 (0)