From 846cc54f0b6dc80d2d7463c476c7ae2f21b5b8db Mon Sep 17 00:00:00 2001 From: Erik Hofman <erik@ehofman.com> Date: Sat, 13 Mar 2021 10:13:33 +0100 Subject: [PATCH] Add the timezone description to the property tree. --- src/Time/TimeManager.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Time/TimeManager.cxx b/src/Time/TimeManager.cxx index 279fe9340..a019f9ae2 100644 --- a/src/Time/TimeManager.cxx +++ b/src/Time/TimeManager.cxx @@ -24,10 +24,10 @@ #include "TimeManager.hxx" -#include <simgear/timing/sg_time.hxx> #include <simgear/misc/sg_path.hxx> #include <simgear/timing/lowleveltime.h> #include <simgear/structure/commands.hxx> +#include <simgear/timing/sg_time.hxx> #include <simgear/math/SGMath.hxx> #include <Main/fg_props.hxx> @@ -433,6 +433,8 @@ void TimeManager::updateLocalTimeString() if (strcmp(s, buf) != 0) { _localTimeStringNode->setStringValue(buf); } + + fgSetString("/sim/time/local-timezone", _impl->get_description()); } void TimeManager::initTimeOffset()