converting time zone in class flight file
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Apr 2016 18:34:20 +0000 (14:34 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Apr 2016 18:34:20 +0000 (14:34 -0400)
class_flight.php

index 7d7bd94..bd2371c 100644 (file)
@@ -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 = '<div id="last-update"><p>&nbsp;</p><p><b>Last updated:</b> '. $lastUpdated . '</p></div>';
                        //echo '<!--<pre>';