From 078b93863df707246042c87288eb6f547341d81f Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 20 Jan 2016 02:01:57 +0000 Subject: [PATCH] Build Tools: Revert to using a human readable timestamp rather than the unix timestamp in [36315]. Fixes #28722 git-svn-id: https://develop.svn.wordpress.org/trunk@36351 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 02a6b6a62c..158129e93f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -126,7 +126,7 @@ module.exports = function(grunt) { version = version.replace( /-src$/, '' ); // If the version includes an SVN commit (-12345), it's not a released alpha/beta. Append a timestamp. - version = version.replace( /-[\d]{5}$/, '-' + new Date().getTime() ); + version = version.replace( /-[\d]{5}$/, '-' + grunt.template.today( 'yyyymmdd.HHMMss' ) ); /* jshint quotmark: true */ return "$wp_version = '" + version + "';";