2013-09-11 07:40:43 +02:00
|
|
|
--- src/Sigil/Dialogs/About.cpp~ 2013-02-17 12:02:24.000000000 +0100
|
|
|
|
+++ src/Sigil/Dialogs/About.cpp 2013-02-24 13:48:30.225303970 +0100
|
|
|
|
@@ -68,6 +68,7 @@
|
2012-11-23 12:37:51 +01:00
|
|
|
|
|
|
|
QDateTime About::GetUTCBuildTime()
|
|
|
|
{
|
|
|
|
+/*
|
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());
|
2013-09-11 07:40:43 +02:00
|
|
|
@@ -76,6 +77,8 @@
|
|
|
|
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();
|
2012-11-23 12:37:51 +01:00
|
|
|
+*/
|
|
|
|
+ return QDateTime( QDate::fromString("@DATE@", "yyyyMMdd"), QTime::fromString( "@TIME@", "hh:mm:ss" ) ).toUTC();
|
|
|
|
}
|
|
|
|
|
|
|
|
|