diff options
author | redmatrix <git@macgirvin.com> | 2016-06-29 22:53:18 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-06-29 22:53:18 -0700 |
commit | 1cc816f66223d5ea5043d4c667478503293414b8 (patch) | |
tree | d1540af3bf2ded49255bfa2e922846dfef161e27 /Zotlabs/Module/Dreport.php | |
parent | bfe84a9ff753d4d9834ea24ad65edfef3561458c (diff) | |
download | volse-hubzilla-1cc816f66223d5ea5043d4c667478503293414b8.tar.gz volse-hubzilla-1cc816f66223d5ea5043d4c667478503293414b8.tar.bz2 volse-hubzilla-1cc816f66223d5ea5043d4c667478503293414b8.zip |
dreport: convert timestamp to channel localtime and get rid of old pre-template code
Diffstat (limited to 'Zotlabs/Module/Dreport.php')
-rw-r--r-- | Zotlabs/Module/Dreport.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Zotlabs/Module/Dreport.php b/Zotlabs/Module/Dreport.php index 904646d5d..17ed6515e 100644 --- a/Zotlabs/Module/Dreport.php +++ b/Zotlabs/Module/Dreport.php @@ -76,12 +76,7 @@ class Dreport extends \Zotlabs\Web\Controller { notice( t('no results') . EOL); return; } - -// $o .= '<div class="generic-content-wrapper-styled">'; -// $o .= '<h2>' . sprintf( t('Delivery report for %1$s'),substr($mid,0,32)) . '...' . '</h2>'; -// $o .= '<table>'; - for($x = 0; $x < count($r); $x++ ) { $r[$x]['name'] = escape_tags(substr($r[$x]['dreport_recip'],strpos($r[$x]['dreport_recip'],' '))); @@ -143,7 +138,7 @@ class Dreport extends \Zotlabs\Web\Controller { $entries[] = [ 'name' => $rr['name'], 'result' => escape_tags($rr['dreport_result']), - 'time' => escape_tags($rr['dreport_time']) + 'time' => escape_tags(datetime_convert('UTC',date_default_timezone_get(),$rr['dreport_time'])) ]; } @@ -155,11 +150,6 @@ class Dreport extends \Zotlabs\Web\Controller { '$entries' => $entries )); -// foreach($r as $rr) { -// $o .= '<tr><td width="40%">' . $rr['name'] . '</td><td width="20%">' . escape_tags($rr['dreport_result']) . '</td><td width="20%">' . escape_tags($rr['dreport_time']) . '</td></tr>'; -// } -// $o .= '</table>'; -// $o .= '</div>'; return $o; |