# HG changeset patch # User Mike Miller # Date 1385091481 18000 # Node ID 7c48493d98e14e3997acc6066e553f1eada92385 # Parent 96a4ac0dc01f72219a8a5f748fc72054ffd9a50c Use currentDateTime instead of currentDateTimeUtc for Qt compatibility * main-window.cc (main_window::main_window, news_reader::process) Use QDateTime::currentDateTime instead of QDateTime::currentDateTimeUtc for compatibility with Qt 4.6. diff -r 96a4ac0dc01f -r 7c48493d98e1 libgui/src/main-window.cc --- a/libgui/src/main-window.cc Thu Nov 21 23:17:11 2013 +0100 +++ b/libgui/src/main-window.cc Thu Nov 21 22:38:01 2013 -0500 @@ -107,7 +107,7 @@ serial = settings->value ("news/last_news_item", 0).toInt (); } - QDateTime current = QDateTime::currentDateTimeUtc (); + QDateTime current = QDateTime::currentDateTime (); QDateTime one_day_ago = current.addDays (-1); if (connect_to_web @@ -378,7 +378,7 @@ if (settings) { settings->setValue ("news/last_time_checked", - QDateTime::currentDateTimeUtc ()); + QDateTime::currentDateTime ()); settings->sync (); }