mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
No ticket: fix build date formatting
This commit is contained in:
parent
332a490573
commit
5b59a63b2b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user