]> source.dussan.org Git - jquery.git/commitdiff
No ticket: fix build date formatting
authorRichard Gibson <richard.gibson@gmail.com>
Mon, 1 Apr 2013 17:02:57 +0000 (13:02 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Mon, 1 Apr 2013 17:02:57 +0000 (13:02 -0400)
Gruntfile.js

index fb8b1e8b043c3695906749e6a652f2acbbbd14c1..19f0f251e866a13fab76386bd79c63f3a86a20b7 100644 (file)
@@ -387,14 +387,8 @@ module.exports = function( grunt ) {
                        // Embed Date
                        compiled = compiled.replace( /@VERSION/g, version )
                                .replace( "@DATE", function () {
-                                       var date = new Date();
-
                                        // YYYY-MM-DD
-                                       return [
-                                               date.getFullYear(),
-                                               date.getMonth() + 1,
-                                               date.getDate()
-                                       ].join( "-" );
+                                       return ( new Date() ).toISOString().replace( /T.*/, "" );
                                });
 
                        // Write concatenated source to file