Commit 96492b1d authored by Ben Truyman's avatar Ben Truyman Committed by Rick Waldron

Format @DATE to ISO 8601 format. Fixes #12725, Closes gh-957

parent d01253e2
......@@ -365,10 +365,19 @@ module.exports = function( grunt ) {
}
});
// Embed Date
// Embed Version
compiled = compiled.replace( "@DATE", new Date() )
.replace( /@VERSION/g, version );
// Embed Date
compiled = compiled.replace( /@VERSION/g, version )
.replace( "@DATE", function () {
var date = new Date();
// YYYY-MM-DD
return [
date.getFullYear(),
date.getMonth() + 1,
date.getDate()
].join( "-" );
});
// Write concatenated source to file
file.write( name, compiled );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment