2017-01-23 15:41:36 +01:00
|
|
|
diff -Pdpru Sigil-0.9.0.orig/src/Dialogs/About.cpp Sigil-0.9.0/src/Dialogs/About.cpp
|
|
|
|
--- Sigil-0.9.0.orig/src/Dialogs/About.cpp 2015-11-04 14:52:16.000000000 +0100
|
|
|
|
+++ Sigil-0.9.0/src/Dialogs/About.cpp 2015-11-29 10:12:53.023905765 +0100
|
|
|
|
@@ -75,6 +75,7 @@ About::About(QWidget *parent)
|
2012-11-23 12:37:51 +01:00
|
|
|
|
|
|
|
QDateTime About::GetUTCBuildTime()
|
|
|
|
{
|
2017-01-23 15:41:36 +01:00
|
|
|
+ /*
|
2013-09-11 07:40:43 +02:00
|
|
|
QString time_string = QString::fromLatin1(__TIME__);
|
|
|
|
QString date_string = QString::fromLatin1(__DATE__);
|
2012-12-16 13:09:11 +01:00
|
|
|
Q_ASSERT(!date_string.isEmpty());
|
2017-01-23 15:41:36 +01:00
|
|
|
@@ -83,6 +84,8 @@ QDateTime About::GetUTCBuildTime()
|
2013-09-11 07:40:43 +02:00
|
|
|
QRegularExpressionMatch mo = date_match.match(date_string);
|
|
|
|
QDate date(mo.captured(3).toInt(), MonthIndexFromString(mo.captured(1)), mo.captured(2).toInt());
|
2012-12-16 13:09:11 +01:00
|
|
|
return QDateTime(date, QTime::fromString(time_string, "hh:mm:ss")).toUTC();
|
2017-01-23 15:41:36 +01:00
|
|
|
+ */
|
2012-11-23 12:37:51 +01:00
|
|
|
+ return QDateTime( QDate::fromString("@DATE@", "yyyyMMdd"), QTime::fromString( "@TIME@", "hh:mm:ss" ) ).toUTC();
|
|
|
|
}
|
|
|
|
|
|
|
|
|