Commit 937b2b19 authored by Richard Gibson's avatar Richard Gibson

No ticket: fix build date formatting

(cherry picked from commit 5b59a63b)
parent e3a802cb
...@@ -393,14 +393,8 @@ module.exports = function( grunt ) { ...@@ -393,14 +393,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