From 99722aa1182f0beb822cd2ee63036fa9f36f1537 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 26 Jul 2019 09:17:23 +0200 Subject: [PATCH] Add seconds patch to the version patch --- sources/patches/app-4-Fix-version-detection.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sources/patches/app-4-Fix-version-detection.patch b/sources/patches/app-4-Fix-version-detection.patch index efe97d0..c02d177 100644 --- a/sources/patches/app-4-Fix-version-detection.patch +++ b/sources/patches/app-4-Fix-version-detection.patch @@ -10,3 +10,13 @@ index 2b53a91eb3..eec55647d5 100644 + self.try_git(git_cmd, Discourse::VERSION::STRING) end end + +@@ -448,7 +448,7 @@ module Discourse + $last_commit_date ||= + begin + git_cmd = 'git log -1 --format="%ct"' +- seconds = self.try_git(git_cmd, nil) ++ seconds = '1563199245' # Note(decentral1se): Output from actual command in the v2.3.2 branch + seconds.nil? ? nil : DateTime.strptime(seconds, '%s') + end + end