Skip to content

Commit

Permalink
Resolves #51 - Default “updated” to today’s date
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonette committed Apr 3, 2017
1 parent 1223360 commit 2810732
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/feed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/feed.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "feed",
"version": "1.0.1",
"version": "1.0.2",
"description": "Feed is a RSS and Atom feed generator for Node.js, making content syndication simple and intuitive!",
"homepage": "http://projets.jpmonette.net/en/feed",
"author": "Jean-Philippe Monette <contact@jpmonette.net>",
Expand Down
2 changes: 1 addition & 1 deletion src/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Feed {
{ _attr: { xmlns: 'http://www.w3.org/2005/Atom' } },
{ id: options.id },
{ title: options.title },
{ updated: this.ISODateString(options.updated) },
{ updated: (options.updated ? this.ISODateString(options.updated) : this.ISODateString(new Date())) },
{ generator: GENERATOR },
]

Expand Down

0 comments on commit 2810732

Please sign in to comment.