cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-coho git commit: CB-7904 Update version format to include SHA and use UTC date
Date Thu, 19 May 2016 08:39:41 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master 94bf9d8bf -> c58ab6383


CB-7904 Update version format to include SHA and use UTC date

This closes #123


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/c58ab638
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/c58ab638
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/c58ab638

Branch: refs/heads/master
Commit: c58ab63838675b6c9b58baf6dc97a602cb830ce4
Parents: 94bf9d8
Author: daserge <v-seshak@microsoft.com>
Authored: Wed May 18 14:51:41 2016 +0300
Committer: Vladimir Kotikov <kotikov.vladimir@gmail.com>
Committed: Thu May 19 11:35:34 2016 +0300

----------------------------------------------------------------------
 src/nightly.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/c58ab638/src/nightly.js
----------------------------------------------------------------------
diff --git a/src/nightly.js b/src/nightly.js
index 28dbdd0..188e424 100644
--- a/src/nightly.js
+++ b/src/nightly.js
@@ -163,11 +163,11 @@ function *runTests(repos, ignoreTestFailures) {
  * @param SHA {String} String to use to generate nightly version
  * @returns {String} A newly generated nightly suffix
  */
-function getNightlySuffix (SHA) {
+function getNightlySuffix(SHA) {
     var currentDate = new Date();
-    var nightlySuffix = '-nightly.' + currentDate.getFullYear() + '.' +
-        (currentDate.getMonth() + 1) + '.' + currentDate.getDate() +
-        '+' + SHA;
+    var nightlySuffix = '-nightly.' + currentDate.getUTCFullYear() + '.' +
+        (currentDate.getUTCMonth() + 1) + '.' + currentDate.getUTCDate() +
+        '.' + SHA;
 
     return nightlySuffix;
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message