UTC to local time

This commit is contained in:
2018-05-23 05:29:50 +01:00
parent ce9b14baa3
commit 694fae6a13
3 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
$tz = new DateTimeZone('UTC');
$completed = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$mailshot['completed'],$timezone=$tz);
if ( $completed )
print $completed->format( '\s\e\n\t \o\n j/M/Y \a\t ga' );
print format_date( $completed->getTimestamp(), 'custom', '\s\e\n\t \o\n j/M/Y \@ g:ia' );
?></small>
<?php foreach ( $mailshot['_view_urls']['text/html'] as $k => $v ): ?>
<a href="<?php print check_plain($v); ?>" target="_blank">view</a>