diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-04-01 13:02:57 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-04-01 13:03:14 -0400 |
commit | 937b2b194d8516d82f2c51c1573ec4316e2960b8 (patch) | |
tree | d7258f401ab35b9d77f80493b3f548fee9a104d4 /Gruntfile.js | |
parent | e3a802cbf7d66d88e3659ad344bce86b99d029be (diff) | |
download | jquery-937b2b194d8516d82f2c51c1573ec4316e2960b8.tar.gz jquery-937b2b194d8516d82f2c51c1573ec4316e2960b8.zip |
No ticket: fix build date formatting
(cherry picked from commit 5b59a63b2b9247b326c654ca941a1dfe77914024)
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index c6b739d17..0925f67d0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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 |