From 28a32089e4b35e6ac9a6e10355ed7eed45a1bd49 Mon Sep 17 00:00:00 2001 From: gine Date: Sat, 25 Mar 2017 17:13:16 +0100 Subject: [PATCH] =?UTF-8?q?Utilizzo=20date=20e=20non=20pi=C3=B9=20modified?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/js/query.js | 4 ++-- www/js/update.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/js/query.js b/www/js/query.js index 8a57b86..009dae3 100644 --- a/www/js/query.js +++ b/www/js/query.js @@ -41,7 +41,7 @@ var drawListPost = function(div, resultSet, position) { for (var i = 0; i < resultSet.rows.length; i++) { var val = JSON.parse(resultSet.rows.item(i).post); var id = val.id; - var date = val.modified; + var date = val.date; var title = val.title.rendered; var url = val.guid.rendered; var cleanTime = EVENTS.formatDate(date, EVENTS.dateFormat.display.date); @@ -394,7 +394,7 @@ function getSinglePageRecur(url, category, pagenum) { } $.each(data, function (key, val) { var id = val.id; - var time = val.modified; + var time = val.date; var title = val.title.rendered; var tags = val.tags; var blob = JSON.stringify(val); diff --git a/www/js/update.js b/www/js/update.js index 214b137..291d80a 100644 --- a/www/js/update.js +++ b/www/js/update.js @@ -141,7 +141,7 @@ function getPrevSinglePageRecur(url, pagenum, categories) { var oldest_date = window.localStorage.getItem('db_oldest_' + type + '_date'); $.each(data, function (key, val) { var id = val.id; - var time = val.modified; + var time = val.date; var title = val.title.rendered; var tags = val.tags; var postCategories = val.categories; @@ -199,7 +199,7 @@ function getLastSinglePageRecur(url, pagenum, categories) { var older_date = null; $.each(data, function (key, val) { var id = val.id; - var time = val.modified; + var time = val.date; var title = val.title.rendered; var tags = val.tags; var postCategories = val.categories;