From 40bd985d361dbfabe8b488c958dd68efb656f0b8 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 17 Nov 2005 15:47:01 +0000 Subject: [PATCH] Expose local timezone offset in the property tree. --- src/Main/fg_props.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Main/fg_props.cxx b/src/Main/fg_props.cxx index 0a78154f9..4e3c9a3d4 100644 --- a/src/Main/fg_props.cxx +++ b/src/Main/fg_props.cxx @@ -509,7 +509,7 @@ void FGProperties::update (double dt) { // Date and time - struct tm * t = globals->get_time_params()->getGmt(); + struct tm *t = globals->get_time_params()->getGmt(); fgSetInt("/sim/time/utc/year", t->tm_year + 1900); fgSetInt("/sim/time/utc/month", t->tm_mon + 1); @@ -522,6 +522,9 @@ FGProperties::update (double dt) t->tm_hour * 3600 + t->tm_min * 60 + t->tm_sec); + + fgSetInt("/sim/time/local-offset", + globals->get_time_params()->get_local_offset()); }