From 619d0fc265fa7ba6d099fa871878899e94edaaa6 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 13 Apr 2016 12:08:32 -0400 Subject: [PATCH] reverting changes for testing --- class_flight.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 ''; -- 2.17.1