#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;
}