Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Issue #460 fixed #465

Merged
merged 1 commit into from

1 participant

@kuzmas
Collaborator

No description provided.

@kuzmas kuzmas merged commit 4a3f183 into from
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 authored
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.