Fix: in fashion mode, the dock shows AM instead of PM at 12 pm.

Change-Id: I86cc2985c0f2a6b863684ad9cce8c5c2ba5140c5
This commit is contained in:
justfortest16162215 2018-02-08 14:58:38 +08:00
parent 570230afaf
commit fc5135ea74
Notes: Deepin Code Review 2018-02-22 09:15:19 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Thu, 22 Feb 2018 09:15:19 +0800
Reviewed-on: https://cr.deepin.io/31663
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -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));