Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Commit

Permalink
Issue #460 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmas committed Oct 23, 2012
1 parent d3ecae9 commit 8e2e431
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions razorqt-panel/plugin-clock/razorclock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ RazorClock::RazorClock(const RazorPanelPluginStartInfo* startInfo, QWidget* pare
*/
void RazorClock::updateTime()
{
#if QT_VERSION < 0x040700
QDateTime now(mUseUTC ? QDateTime::currentDateTime().toUTC() : QDateTime::currentDateTime());
#else
QDateTime now(mUseUTC ? QDateTime::currentDateTimeUtc() : QDateTime::currentDateTime());
#endif

if (mDateOnNewLine)
{
mTimeLabel->setText(QLocale::system().toString(now, mTimeFormat));
Expand Down

0 comments on commit 8e2e431

Please sign in to comment.