UTC to local time

master
Marek Isalski 6 years ago
parent ceab1b78ab
commit a154a1236d

@ -8,7 +8,7 @@
$tz = new DateTimeZone('UTC');
$completed = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$mailshot['completed'],$timezone=$tz);
if ( $completed )
print format_date( $completed->getTimestamp(), 'custom', '\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 \a\t g:ia' );
?></small></h3>
<blockquote>
<?php print strip_tags( preg_replace( '/\{\{[^\{]*\}\}/', '&hellip;', text_summary( $mailshot['campaign']['d']['body'], 'full_html' ) ) ); ?>

Loading…
Cancel
Save