Explorar o código

Fix date format in code

Jay Salvat %!s(int64=6) %!d(string=hai) anos
pai
achega
1e2d21a44e
Modificáronse 3 ficheiros con 21 adicións e 3 borrados
  1. 9 0
      dist/vegas.js
  2. 9 0
      dist/vegas.min.js
  3. 3 3
      gulpfile.js

+ 9 - 0
dist/vegas.js

@@ -1,3 +1,12 @@
+/*!-----------------------------------------------------------------------------
+ * Vegas - Fullscreen Backgrounds and Slideshows.
+ * v2.4.2 - built 2018-09-18
+ * Licensed under the MIT License.
+ * http://vegas.jaysalvat.com/
+ * ----------------------------------------------------------------------------
+ * Copyright (C) 2010-2018 Jay Salvat
+ * http://jaysalvat.com/
+ * --------------------------------------------------------------------------*/
 /*!-----------------------------------------------------------------------------
  * Vegas - Fullscreen Backgrounds and Slideshows.
  * v2.4.2 - built 2018-20-18

+ 9 - 0
dist/vegas.min.js

@@ -1,3 +1,12 @@
+/*!-----------------------------------------------------------------------------
+ * Vegas - Fullscreen Backgrounds and Slideshows.
+ * v2.4.2 - built 2018-09-18
+ * Licensed under the MIT License.
+ * http://vegas.jaysalvat.com/
+ * ----------------------------------------------------------------------------
+ * Copyright (C) 2010-2018 Jay Salvat
+ * http://jaysalvat.com/
+ * --------------------------------------------------------------------------*/
 /*!-----------------------------------------------------------------------------
  * Vegas - Fullscreen Backgrounds and Slideshows.
  * v2.4.2 - built 2018-20-18

+ 3 - 3
gulpfile.js

@@ -36,7 +36,7 @@
             ].join('\n'),
             vars: {
                 pkg: pkg,
-                datetime: dateFormat.asString('yyyy-mm-dd'),
+                datetime: dateFormat.asString('yyyy-MM-dd'),
                 year: dateFormat.asString('yyyy')
             }
         }
@@ -141,7 +141,7 @@
 
     gulp.task('meta', [ 'tmp-create' ], function (cb) {
         var  metadata = {
-                date: dateFormat.asString('yyyy-mm-dd HH:MM'),
+                date: dateFormat.asString('yyyy-MM-dd HH:MM'),
                 version: 'v' + getPackageJson().version
             },
             json = JSON.stringify(metadata, null, 4);
@@ -255,7 +255,7 @@
         var filename  = 'CHANGELOG.md',
             editor    = process.env.EDITOR || 'vim',
             version   = getPackageJson().version,
-            date      = dateFormat.asString('yyyy-mm-dd'),
+            date      = dateFormat.asString('yyyy-MM-dd'),
             changelog = fs.readFileSync(filename).toString(),
             lastDate  = /\d{4}-\d{2}-\d{2}/.exec(changelog)[0];