sigil/sigil-Dialogs-About.cpp.patch

20 lines
750 B
Diff
Raw Normal View History

--- 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 @@
QDateTime About::GetUTCBuildTime()
{
+/*
QString time_string = QString::fromLatin1(__TIME__);
QString date_string = QString::fromLatin1(__DATE__);
Q_ASSERT(!date_string.isEmpty());
@@ -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());
return QDateTime(date, QTime::fromString(time_string, "hh:mm:ss")).toUTC();
+*/
+ return QDateTime( QDate::fromString("@DATE@", "yyyyMMdd"), QTime::fromString( "@TIME@", "hh:mm:ss" ) ).toUTC();
}