+ // cout << "Current greenwich mean time = " << asctime(gmtime(&cur_time))
+ // << endl;
+ // cout << "Current local time = "
+ // << asctime(localtime(&cur_time)) << endl;
+
+ if ( root != "" ) {
+ FGPath zone( root );
+ zone.append( "zone.tab" );
+ FG_LOG( FG_EVENT, FG_DEBUG, "Reading timezone info from: "
+ << zone.str() );
+ tzContainer = new TimezoneContainer( zone.c_str() );
+
+ GeoCoord location( RAD_TO_DEG * lat, RAD_TO_DEG * lon );
+ GeoCoord* nearestTz = tzContainer->getNearest(location);
+
+ FGPath name( root );
+ name.append( nearestTz->getDescription() );
+ zonename = strdup( name.c_str() );
+ // cout << "Using zonename = " << zonename << endl;
+ } else {
+ tzContainer = NULL;
+ zonename = NULL;
+ }
+}
+