Commit 5b59a63b authored by Richard Gibson's avatar Richard Gibson

No ticket: fix build date formatting

parent 332a4905
...@@ -387,14 +387,8 @@ module.exports = function( grunt ) { ...@@ -387,14 +387,8 @@ module.exports = function( grunt ) {
// Embed Date // Embed Date
compiled = compiled.replace( /@VERSION/g, version ) compiled = compiled.replace( /@VERSION/g, version )
.replace( "@DATE", function () { .replace( "@DATE", function () {
var date = new Date();
// YYYY-MM-DD // YYYY-MM-DD
return [ return ( new Date() ).toISOString().replace( /T.*/, "" );
date.getFullYear(),
date.getMonth() + 1,
date.getDate()
].join( "-" );
}); });
// Write concatenated source to file // Write concatenated source to file
......
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