mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
No ticket: fix build date formatting
(cherry picked from commit 5b59a63b2b
)
This commit is contained in:
parent
e3a802cbf7
commit
937b2b194d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user