From d0dae300cc52f05047cf0e5ec6dded4a57ee7357 Mon Sep 17 00:00:00 2001
From: "Tux3 / Mlkj / !Lev.uXFMLA" <barrdetwix@gmail.com>
Date: Thu, 13 Nov 2014 13:59:04 +0100
Subject: [PATCH] Remember compile time timestamp

Will be used to guarantee we don't downgrade if there's a bad update
---
 qtox.pro     | 2 ++
 src/main.cpp | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/qtox.pro b/qtox.pro
index 2b0f79d19..6fa31b7e0 100644
--- a/qtox.pro
+++ b/qtox.pro
@@ -46,6 +46,8 @@ RESOURCES += res.qrc
 
 GIT_VERSION = $$system(git rev-parse HEAD 2> /dev/null || echo "built without git")
 DEFINES += GIT_VERSION=\"\\\"$$quote($$GIT_VERSION)\\\"\"
+TIMESTAMP = $$system(date +"%s" || echo 0)
+DEFINES += TIMESTAMP=$$TIMESTAMP
 DEFINES += LOG_TO_FILE
 
 contains(JENKINS,YES) {
diff --git a/src/main.cpp b/src/main.cpp
index 3fa5b0108..baab1f558 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -94,7 +94,7 @@ int main(int argc, char *argv[])
     QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
     a.addLibraryPath("platforms");
 
-    qDebug() << "built on: " << __TIME__ << __DATE__;
+    qDebug() << "built on: " << __TIME__ << __DATE__ << "(" << TIMESTAMP << ")";
     qDebug() << "commit: " << GIT_VERSION << "\n";
 
     // Install Unicode 6.1 supporting font