]> 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:54:52 +0000 (15:54 -0400)
Gruntfile.js

index 766c9e2fdb76f7414e45deed942af53b16174c9b..7ba99744bc881cef87cc51a235c38f976d8448b6 100644 (file)
@@ -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 );