]> 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:03:14 +0000 (13:03 -0400)
(cherry picked from commit 5b59a63b2b9247b326c654ca941a1dfe77914024)

Gruntfile.js

index c6b739d176c42102c7a8b1dc4536f0c574f20d80..0925f67d06d07a8d12ac98498049aa12e48b1cb8 100644 (file)
@@ -393,14 +393,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