diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-05-11 15:54:17 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-05-11 15:58:45 -0400 |
commit | 8ee67bde11ef496dcde4ee026e905c52eb7d4782 (patch) | |
tree | 3449858426da33b18d4736a34e92073091aca63b | |
parent | 1debe49ac7d9379ede44e873e4a2ebaa10dfb0b6 (diff) | |
download | jquery-8ee67bde11ef496dcde4ee026e905c52eb7d4782.tar.gz jquery-8ee67bde11ef496dcde4ee026e905c52eb7d4782.zip |
Add release time to header on uncompressed file.
(cherry picked from commit 71f33cc7d949e3b5661754a9075aca990d71ba1f)
-rw-r--r-- | Gruntfile.js | 6 |
1 files changed, 2 insertions, 4 deletions
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 ); |