summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-15 09:40:31 +0400
committerAndrew Dolgov <[email protected]>2013-03-15 09:40:31 +0400
commitef3da31cd937902e8382e19277f8a2cf41b6e711 (patch)
tree9c9af6894094d3400c7ffc805331f6f1cb0dc941 /classes/api.php
parent5a1b1af31178736db2b264e88b6128861d1d57af (diff)
api: force returned timestamps to integer
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/api.php b/classes/api.php
index 4b24b0110..a23f20ae2 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -309,7 +309,7 @@ class API extends Handler {
"published" => sql_bool_to_bool($line["published"]),
"comments" => $line["comments"],
"author" => $line["author"],
- "updated" => strtotime($line["updated"]),
+ "updated" => (int) strtotime($line["updated"]),
"content" => $line["cached_content"] != "" ? $line["cached_content"] : $line["content"],
"feed_id" => $line["feed_id"],
"attachments" => $attachments
@@ -563,7 +563,7 @@ class API extends Handler {
"unread" => (int)$unread,
"has_icon" => $has_icon,
"cat_id" => (int)$line["cat_id"],
- "last_updated" => strtotime($line["last_updated"]),
+ "last_updated" => (int) strtotime($line["last_updated"]),
"order_id" => (int) $line["order_id"],
);
@@ -604,7 +604,7 @@ class API extends Handler {
"unread" => sql_bool_to_bool($line["unread"]),
"marked" => sql_bool_to_bool($line["marked"]),
"published" => sql_bool_to_bool($line["published"]),
- "updated" => strtotime($line["updated"]),
+ "updated" => (int) strtotime($line["updated"]),
"is_updated" => $is_updated,
"title" => $line["title"],
"link" => $line["link"],