Skip to content

Loading…

Issue #460 fixed #465

Merged
merged 1 commit into from

1 participant

@kuzmas
Razor-qt member

No description provided.

@kuzmas kuzmas merged commit 4a3f183 into Razor-qt:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 23, 2012
  1. @kuzmas

    Issue #460 fixed

    kuzmas committed
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 razorqt-panel/plugin-clock/razorclock.cpp
View
5 razorqt-panel/plugin-clock/razorclock.cpp
@@ -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));
Something went wrong with that request. Please try again.