]> source.dussan.org Git - jquery.git/commitdiff
Add release time to header on uncompressed file.
authorDave Methvin <dave.methvin@gmail.com>
Sat, 11 May 2013 19:54:17 +0000 (15:54 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Sat, 11 May 2013 19:58:45 +0000 (15:58 -0400)
(cherry picked from commit 71f33cc7d949e3b5661754a9075aca990d71ba1f)

Gruntfile.js

index 8b697cf19267dd45fb8f3a8f54e209e006c5e68d..3d50670869abb1f974fbd525f3f8b441f67f3a0d 100644 (file)
@@ -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 );