https://code.google.com/p/flightgear-bugs/issues/detail?id=1207
Use the new (in SimGear) sgGMTime helper when comparing METAR age.
This prevents users in time-zones 4 or more hours ahead of GMT from
being unable to use METAR reports.
#include <simgear/math/sg_random.h>
#include <simgear/timing/sg_time.hxx>
+#include <simgear/timing/lowleveltime.h>
+
#include <Main/fg_props.hxx>
#include "fgmetar.hxx"
long FGMetar::getAge_min() const
{
- time_t now = _x_proxy ? _rq_time : time(0);
+ time_t now = _x_proxy ? _rq_time : sgGMTime();
return (now - _time) / 60;
}