summaryrefslogtreecommitdiff
path: root/mobile
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-07 18:14:48 +0300
committerAndrew Dolgov <[email protected]>2010-11-07 18:14:48 +0300
commit324944f3329b99e527f12c65e4a0e1358e8f180a (patch)
tree37b098fa9a066e3dbb0d74584a571fabb749e092 /mobile
parentf3f67c1b53d2d93486fc3c57253b8af4d5e7a0c7 (diff)
implement per-user timezone support; store dates in UTC internally (closes #254)
Diffstat (limited to 'mobile')
-rw-r--r--mobile/classic/functions.php9
-rw-r--r--mobile/functions.php9
2 files changed, 4 insertions, 14 deletions
diff --git a/mobile/classic/functions.php b/mobile/classic/functions.php
index bd61bbfd2..4cb58308e 100644
--- a/mobile/classic/functions.php
+++ b/mobile/classic/functions.php
@@ -522,13 +522,8 @@
$content_link = "<a href=\"?go=view&id=$id&cat=$cat_view&ret_feed=$feed&feed=$feed_id\">" .
$line["title"] . "</a>";
- if (get_pref($link, 'HEADLINES_SMART_DATE')) {
- $updated_fmt = smart_date_time(strtotime($line["updated"]));
- } else {
- $short_date = get_pref($link, 'SHORT_DATE_FORMAT');
- $updated_fmt = date($short_date, strtotime($line["updated"]));
- }
-
+ $updated_fmt = make_local_datetime($link, $line['updated'], false);
+
print "<li class='$class' id=\"HROW-$id\">";
print "<input type=\"checkbox\" name=\"sel_ids[$id]\"
diff --git a/mobile/functions.php b/mobile/functions.php
index 18440bab9..6dec6440d 100644
--- a/mobile/functions.php
+++ b/mobile/functions.php
@@ -434,13 +434,8 @@
WHERE ref_id = '$id'
AND owner_uid = " . $_SESSION["uid"]);
- if (get_pref($link, 'HEADLINES_SMART_DATE')) {
- $updated_fmt = smart_date_time(strtotime($line["updated"]));
- } else {
- $short_date = get_pref($link, 'SHORT_DATE_FORMAT');
- $updated_fmt = date($short_date, strtotime($line["updated"]));
- }
-
+ $updated_fmt = make_local_datetime($link, $line['updated'], false);
+
$title = $line["title"];
$article_link = $line["link"];