Skip to content

Commit

Permalink
Parse feed dates as Date objects so interleaving works with all tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico B committed Aug 7, 2017
1 parent 213f5e3 commit 453ba61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/sources/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Feed {
normalize(data) {
const toSchema = ({ title, date, link }) => ({
title,
publishedAt: date,
publishedAt: new Date(date),
link,
type: this.type,
});
Expand Down
2 changes: 1 addition & 1 deletion src/data/sources/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Sidebar extends API {
return data.map(({ headline, url, date }) => (
{
title: headline,
publishedAt: date,
publishedAt: new Date(date),
link: valueSeq(queryString.parse(url))[0],
type: this.type,
}
Expand Down

0 comments on commit 453ba61

Please sign in to comment.