Description: make the build reproducible by removing references to the build time
Author: Mattia Rizzolo <mattia@mapreri.org>
Forwarded: yes, rejected: https://github.com/Sigil-Ebook/Sigil/pull/160#issuecomment-158234798
Last-Update: 2015-07-30

--- a/src/Dialogs/About.cpp
+++ b/src/Dialogs/About.cpp
@@ -39,7 +39,6 @@
     ui.setupUi(this);
     ui.lbHomepageDisplay->setText("<a href=\"" % SIGIL_HOMEPAGE % "\">" % SIGIL_HOMEPAGE % "</a>");
     ui.lbLicenseDisplay->setText("<a href=\"" % GNU_LICENSE % "\">" % tr("GNU General Public License v3") % "</a>");
-    ui.lbBuildTimeDisplay->setText(GetUTCBuildTime().toString("yyyy.MM.dd HH:mm:ss") + " UTC");
     ui.lbLoadedQtDisplay->setText(QString(qVersion()));
     QRegularExpression version_number(VERSION_NUMBERS);
     QRegularExpressionMatch mo = version_number.match(SIGIL_VERSION);
@@ -73,18 +72,6 @@
 }
 
 
-QDateTime About::GetUTCBuildTime()
-{
-    QString time_string = QString::fromLatin1(__TIME__);
-    QString date_string = QString::fromLatin1(__DATE__);
-    Q_ASSERT(!date_string.isEmpty());
-    Q_ASSERT(!time_string.isEmpty());
-    QRegularExpression date_match("(\\w{3})\\s+(\\d+)\\s+(\\d{4})");
-    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();
-}
-
 
 // Needed because if we use the "MMM" string in the QDate::fromString
 // function, it will match on localized month names, not English ones.
--- a/src/Dialogs/About.h
+++ b/src/Dialogs/About.h
@@ -50,13 +50,6 @@
 private:
 
     /**
-     * Returns the time that Sigil was built in UTC.
-     *
-     * @return The build time in UTC.
-     */
-    static QDateTime GetUTCBuildTime();
-
-    /**
      * Converts a three letter string like "Jun"
      * into that month's index.
      *
--- a/src/Form_Files/About.ui
+++ b/src/Form_Files/About.ui
@@ -207,33 +207,6 @@
            </property>
           </widget>
          </item>
-         <item row="4" column="0">
-          <widget class="QLabel" name="lbBuildTime">
-           <property name="font">
-            <font>
-             <pointsize>10</pointsize>
-            </font>
-           </property>
-           <property name="text">
-            <string>Build time:</string>
-           </property>
-          </widget>
-         </item>
-         <item row="4" column="1">
-          <widget class="QLabel" name="lbBuildTimeDisplay">
-           <property name="font">
-            <font>
-             <pointsize>10</pointsize>
-            </font>
-           </property>
-           <property name="text">
-            <string notr="true">BUILD TIME HERE</string>
-           </property>
-           <property name="indent">
-            <number>5</number>
-           </property>
-          </widget>
-         </item>
          <item row="1" column="0">
           <widget class="QLabel" name="lbLicense">
            <property name="font">
