From: Anthony Talarico Date: Wed, 13 Apr 2016 16:08:32 +0000 (-0400) Subject: reverting changes for testing X-Git-Tag: v1.0.0~10^2~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=619d0fc265fa7ba6d099fa871878899e94edaaa6;p=WP-Themes%2Fairciu.git reverting changes for testing --- diff --git a/class_flight.php b/class_flight.php index 7d7bd94..1d425b9 100644 --- a/class_flight.php +++ b/class_flight.php @@ -106,15 +106,15 @@ include_once($_SERVER['DOCUMENT_ROOT'].'/wp-config.php' ); rsort($update_times); // get UTC offset for current date/time $TimeDiff = 4+date("I"); -// $this->last_updated = '

 

Last updated: '.date("n/j/Y g:i a",$update_times[0]-($TimeDiff*60*60)).'

'; - $query = "SELECT msg_dtm FROM glm_flight - ORDER BY msg_dtm DESC - 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'])); - } - $this->last_updated = '

 

Last updated: '. $lastUpdated . '

'; + $this->last_updated = '

 

Last updated: '.date("n/j/Y g:i a",$update_times[0]-($TimeDiff*60*60)).'

'; +// $query = "SELECT msg_dtm FROM glm_flight +// ORDER BY msg_dtm DESC +// 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'])); +// } +// $this->last_updated = '

 

Last updated: '. $lastUpdated . '

'; //echo '';