This repository has been archived by the owner. It is now read-only.

Issue #460 fixed #465

Merged
merged 1 commit into from Oct 23, 2012
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Diff settings

Always

Just for now

@@ -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));