TimeZone: Terminal timezone sync twrp settings
Signed-off-by: sekaiacg <sekaiacg@gmail.com>
Change-Id: I761d1e57082d5cb7a250b5674d9b98a9fd51eab0
diff --git a/data.cpp b/data.cpp
index db04741..fa299c1 100644
--- a/data.cpp
+++ b/data.cpp
@@ -518,8 +518,10 @@
void DataManager::update_tz_environment_variables(void)
{
- setenv("TZ", GetStrValue(TW_TIME_ZONE_VAR).c_str(), 1);
+ string TZ = GetStrValue(TW_TIME_ZONE_VAR);
+ setenv("TZ", TZ.c_str(), 1);
tzset();
+ property_set("persist.sys.timezone", TZ.c_str());
}
void DataManager::SetBackupFolder()