Skip to content

Commit

Permalink
fix(writer): fix the issue with one digit month/days
Browse files Browse the repository at this point in the history
  • Loading branch information
tvardy committed Jun 17, 2017
1 parent cf7aff2 commit bd56662
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ var TYPES = {
*/
exports.markdown = function (version, commits, options) {
var content = [];
var now = new Date();
var date = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate();
var date = new Date().toJSON().slice(0,10);
var heading;

if (options.major) {
Expand Down

0 comments on commit bd56662

Please sign in to comment.