diff options
author | Andrew Dolgov <[email protected]> | 2010-11-07 18:14:48 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-07 18:14:48 +0300 |
commit | 324944f3329b99e527f12c65e4a0e1358e8f180a (patch) | |
tree | 37b098fa9a066e3dbb0d74584a571fabb749e092 /modules/pref-feeds.php | |
parent | f3f67c1b53d2d93486fc3c57253b8af4d5e7a0c7 (diff) |
implement per-user timezone support; store dates in UTC internally (closes #254)
Diffstat (limited to 'modules/pref-feeds.php')
-rw-r--r-- | modules/pref-feeds.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index b10679776..376980ce3 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1326,22 +1326,16 @@ if (!$last_updated) { $last_updated = "—"; - } else if (get_pref($link, 'HEADLINES_SMART_DATE')) { - $last_updated = smart_date_time(strtotime($last_updated)); } else { - $short_date = get_pref($link, 'SHORT_DATE_FORMAT'); - $last_updated = date($short_date, strtotime($last_updated)); + $last_updated = make_local_datetime($link, $last_updated, false); } $last_article = $line["last_article"]; if (!$last_article) { $last_article = "—"; - } else if (get_pref($link, 'HEADLINES_SMART_DATE')) { - $last_article = smart_date_time(strtotime($last_article)); } else { - $short_date = get_pref($link, 'SHORT_DATE_FORMAT'); - $last_article = date($short_date, strtotime($last_article)); + $last_article = make_local_datetime($link, $last_article, false); } if (get_pref($link, 'ENABLE_FEED_CATS') && $cur_cat_id != $cat_id) { |