LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sigil-Dialogs-About.cpp.patch of Package sigil (Project Documentation:Tools)

--- src/Sigil/Dialogs/About.cpp~	2012-10-27 20:24:40.000000000 +0200
+++ src/Sigil/Dialogs/About.cpp	2012-11-05 20:35:06.656059675 +0100
@@ -53,6 +53,7 @@
 
 QDateTime About::GetUTCBuildTime()
 {
+/*
     QString time_string = QString::fromAscii( __TIME__ );
     QString date_string = QString::fromAscii( __DATE__ );
 
@@ -67,6 +68,8 @@
                 date_match.cap( 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();
 }