Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Issue #460 fixed

  • Loading branch information...
commit 8e2e43144ffa8fc366b2fdae5bc4dd55d09d0c44 1 parent d3ecae9
@kuzmas kuzmas authored
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));
Please sign in to comment.
Something went wrong with that request. Please try again.