From fc5135ea7406fb1cd614ff2e47659c88a2a7497b Mon Sep 17 00:00:00 2001 From: justfortest16162215 Date: Thu, 8 Feb 2018 14:58:38 +0800 Subject: [PATCH] Fix: in fashion mode, the dock shows AM instead of PM at 12 pm. Change-Id: I86cc2985c0f2a6b863684ad9cce8c5c2ba5140c5 --- plugins/datetime/datetimewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/datetime/datetimewidget.cpp b/plugins/datetime/datetimewidget.cpp index f4a146020..e122e2c65 100644 --- a/plugins/datetime/datetimewidget.cpp +++ b/plugins/datetime/datetimewidget.cpp @@ -167,7 +167,7 @@ void DatetimeWidget::paintEvent(QPaintEvent *e) const int tips_height = tips_width / 2; QPixmap tips; - if (current.time().hour() > 12) + if (current.time().hour() > 11) tips = loadSvg(":/icons/resources/icons/tips-pm.svg", QSize(tips_width, tips_height)); else tips = loadSvg(":/icons/resources/icons/tips-am.svg", QSize(tips_width, tips_height));