aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-05-11 15:54:17 -0400
committerDave Methvin <dave.methvin@gmail.com>2013-05-11 15:54:52 -0400
commit71f33cc7d949e3b5661754a9075aca990d71ba1f (patch)
tree587efdba16acdf8e4cafd9f041e3f6cf68cc87ff /Gruntfile.js
parent6fe4f92da1a2813132ef5604f88124175574e733 (diff)
downloadjquery-71f33cc7d949e3b5661754a9075aca990d71ba1f.tar.gz
jquery-71f33cc7d949e3b5661754a9075aca990d71ba1f.zip
Add release time to header on uncompressed file.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 766c9e2fd..7ba99744b 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -411,10 +411,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 );