From: Dave Methvin Date: Sat, 11 May 2013 19:54:17 +0000 (-0400) Subject: Add release time to header on uncompressed file. X-Git-Tag: 2.0.1~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ee67bde11ef496dcde4ee026e905c52eb7d4782;p=jquery.git Add release time to header on uncompressed file. (cherry picked from commit 71f33cc7d949e3b5661754a9075aca990d71ba1f) --- diff --git a/Gruntfile.js b/Gruntfile.js index 8b697cf19..3d5067086 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -415,10 +415,8 @@ module.exports = function( grunt ) { // Embed Version // Embed Date compiled = compiled.replace( /@VERSION/g, version ) - .replace( "@DATE", function () { - // YYYY-MM-DD - return ( new Date() ).toISOString().replace( /T.*/, "" ); - }); + // yyyy-mm-ddThh:mmZ + .replace( /@DATE/g, ( new Date() ).toISOString().replace( /:\d+\.\d+Z$/, "Z" ) ); // Write concatenated source to file grunt.file.write( name, compiled );