diff options
Diffstat (limited to 'src/client/infowidget.cc')
-rw-r--r-- | src/client/infowidget.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/infowidget.cc b/src/client/infowidget.cc index 752c09b..c99a3f2 100644 --- a/src/client/infowidget.cc +++ b/src/client/infowidget.cc @@ -207,19 +207,19 @@ void ClockInfoWidget::draw() sys::get_localtime(hours, minutes, seconds); std::ostringstream clockstr; - clockstr << std::setfill('0') << std::setw(2); + clockstr << std::setfill(' ') << std::setw(2); if (mode() == Clock12Hours) { std::string suffix("am"); if (hours >= 12) { - suffix[1] = 'p'; + suffix[0] = 'p'; hours -= 12; } if (hours == 0) { hours += 12; } - clockstr << hours << ":" << std::setfill('0') << std::setw(2) << minutes << suffix; + clockstr << hours << ":" << std::setfill('0') << std::setw(2) << minutes << " " << suffix; } else { clockstr << " " << hours << ":" << std::setfill('0') << std::setw(2) << minutes; } |