No ticket: fix build date formatting

This commit is contained in:
Richard Gibson 2013-04-01 13:02:57 -04:00
parent 332a490573
commit 5b59a63b2b

View File

@ -387,14 +387,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