]> git.wh0rd.org - tt-rss.git/blobdiff - mobile/functions.php
implement per-user timezone support; store dates in UTC internally (closes #254)
[tt-rss.git] / mobile / functions.php
index 18440bab942c9dec85fe15c3c0e77dc2deb076a4..6dec6440d4fe86a7a7367f53900ba48007c9bf03 100644 (file)
                                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"];