From: Anthony Talarico Date: Thu, 14 Apr 2016 18:34:20 +0000 (-0400) Subject: converting time zone in class flight file X-Git-Tag: v1.0.0~10^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6d6e77e1007cedc8c15a7e69238408f29965514d;p=WP-Themes%2Fairciu.git converting time zone in class flight file --- diff --git a/class_flight.php b/class_flight.php index 7d7bd94..bd2371c 100644 --- a/class_flight.php +++ b/class_flight.php @@ -112,7 +112,7 @@ include_once($_SERVER['DOCUMENT_ROOT'].'/wp-config.php' ); LIMIT 1;"; $results = $wpdb->get_results($query, ARRAY_A); foreach($results as $key=>$value){ - $lastUpdated = date("n/j/Y g:i a", strtotime($value['msg_dtm'])); + $lastUpdated = date("n/j/Y g:i a", strtotime($value['msg_dtm']) - ($TimeDiff*60*60)); } $this->last_updated = '

 

Last updated: '. $lastUpdated . '

'; //echo '