From 5639b310770bb637c4ae0fde664574ae4579f2ab Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 1 Nov 2013 14:22:33 +0100 Subject: [PATCH] Fix when anylyzing last build time. --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 36c520a..75106ae 100644 --- a/src/extension.js +++ b/src/extension.js @@ -1255,7 +1255,7 @@ weather-storm.png = weather-storm-symbolic.svg } let beginOfDay = new Date(new Date().setHours(0, 0, 0, 0)); - let d = Math.floor((beginOfDay.getTime() - this.lastBuildDate.getTime()) / 86400000); + let d = Math.floor((this.lastBuildDate.getTime() - beginOfDay.getTime()) / 86400000); if (d < 0) { lastBuild = _("Yesterday"); if (d < -1)