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
This commit is contained in:
parent
18d9640a5a
commit
078b93863d
@ -126,7 +126,7 @@ module.exports = function(grunt) {
|
|||||||
version = version.replace( /-src$/, '' );
|
version = version.replace( /-src$/, '' );
|
||||||
|
|
||||||
// If the version includes an SVN commit (-12345), it's not a released alpha/beta. Append a timestamp.
|
// 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 */
|
/* jshint quotmark: true */
|
||||||
return "$wp_version = '" + version + "';";
|
return "$wp_version = '" + version + "';";
|
||||||
|
Loading…
Reference in New Issue
Block a user