提交 3e2e764e 编写于 作者: S sunyaozu

fix hour12 setting bug

Signed-off-by: Nsunyaozu <sunyaozu@huawei.com>
上级 d6653a16
......@@ -277,7 +277,7 @@ void DateTimeFormat::ParseConfigsPartTwo(std::map<std::string, std::string> &con
if (configs.count("hour12") > 0) {
hour12 = configs["hour12"];
}
if (hour12.empty()) {
if (hour12.empty() && hourCycle.empty()) {
bool is24HourClock = LocaleConfig::Is24HourClock();
if (is24HourClock) {
hour12 = "false";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册