1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 20:41:29 +00:00

implement per-user timezone support; store dates in UTC internally (closes #254)

This commit is contained in:
Andrew Dolgov
2010-11-07 18:14:48 +03:00
parent f3f67c1b53
commit 324944f332
14 changed files with 656 additions and 72 deletions

View File

@@ -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]\"