No ticket: fix build date formatting

(cherry picked from commit 5b59a63b2b)
This commit is contained in:
Richard Gibson 2013-04-01 13:02:57 -04:00
parent e3a802cbf7
commit 937b2b194d

View File

@ -393,14 +393,8 @@ module.exports = function( grunt ) {
// 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( "-" );
return ( new Date() ).toISOString().replace( /T.*/, "" );
});
// Write concatenated source to file