From 2267e54cd42c1205323978c8e7df2723d3939099 Mon Sep 17 00:00:00 2001 From: Jeena Date: Tue, 4 Feb 2014 21:56:53 +0100 Subject: [PATCH] fixed timestamp bug --- js/Pond.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/Pond.js b/js/Pond.js index 7798e12..501494c 100644 --- a/js/Pond.js +++ b/js/Pond.js @@ -131,6 +131,8 @@ Pond.prototype.normalizeArticle = function(article) { var excerpt = article.summary.content.htmlDecode(); if(!excerpt || excerpt.length < 1) excerpt = content; + + var timestamp = new Date(article.published_at).getTime() / 1000; return { id: article.id, @@ -140,7 +142,7 @@ Pond.prototype.normalizeArticle = function(article) { feed_title: feed_title, feed_id: article.subscription_id, excerpt: excerpt.stripHTML().substring(0, 100), - updated: article.published_at, + updated: timestamp, link: article.url, marked: false, // not implemented in Pond server yet unread: !article.read