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:02:57 -0400 |
commit | 5b59a63b2b9247b326c654ca941a1dfe77914024 (patch) | |
tree | 1cc1fe2a3299f97635c5b88640f063c665b55807 | |
parent | 332a490573bbbd9e7df1381bde8f590240cb8679 (diff) | |
download | jquery-5b59a63b2b9247b326c654ca941a1dfe77914024.tar.gz jquery-5b59a63b2b9247b326c654ca941a1dfe77914024.zip |
No ticket: fix build date formatting
-rw-r--r-- | Gruntfile.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index fb8b1e8b0..19f0f251e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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 |