summaryrefslogtreecommitdiff
path: root/classes/digest.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-23 13:04:26 +0300
committerAndrew Dolgov <[email protected]>2020-09-23 13:04:26 +0300
commit215f3889924973ad138cfce309744cb1abf38cf0 (patch)
tree537e304c28d2231c27340cf347276c94aa561d73 /classes/digest.php
parent05744bb474e55c4f85acd236dd2883679c278e70 (diff)
move timestamp-related stuff to a separate class
Diffstat (limited to 'classes/digest.php')
-rw-r--r--classes/digest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/digest.php b/classes/digest.php
index 9101b52f4..5128b4186 100644
--- a/classes/digest.php
+++ b/classes/digest.php
@@ -97,7 +97,7 @@ class Digest
$tpl_t->readTemplateFromFile("digest_template.txt");
$user_tz_string = get_pref('USER_TIMEZONE', $user_id);
- $local_ts = convert_timestamp(time(), 'UTC', $user_tz_string);
+ $local_ts = TimeHelper::convert_timestamp(time(), 'UTC', $user_tz_string);
$tpl->setVariable('CUR_DATE', date('Y/m/d', $local_ts));
$tpl->setVariable('CUR_TIME', date('G:i', $local_ts));
@@ -159,7 +159,7 @@ class Digest
array_push($affected_ids, $line["ref_id"]);
- $updated = make_local_datetime($line['last_updated'], false,
+ $updated = TimeHelper::make_local_datetime($line['last_updated'], false,
$user_id);
if (get_pref('ENABLE_FEED_CATS', $user_id)) {