From 378bac447f3204607787d26c33227d1e18068147 Mon Sep 17 00:00:00 2001 From: fang fengrong Date: Thu, 9 Mar 2023 08:47:46 +0800 Subject: [PATCH] [M108 Migration] Fix timezone incorrect issue If web page uses JavaScript Date objects, then timezone information is incorrect. Reference site : https://www.w3schools.com/js/js_dates.asp System icu using "/opt/etc/localtime" instead of "/etc/localtime" Reference: https://review.tizen.org/gerrit/#/c/282962 Change-Id: Ie5c2ff93647d94620fa8c1b20d62684db596c72f Signed-off-by: fang fengrong --- third_party/icu/source/common/putil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/third_party/icu/source/common/putil.cpp b/third_party/icu/source/common/putil.cpp index 41f6e3c..f18d845 100644 --- a/third_party/icu/source/common/putil.cpp +++ b/third_party/icu/source/common/putil.cpp @@ -80,6 +80,8 @@ #include #include +#include "build/build_config.h" + #ifndef U_COMMON_IMPLEMENTATION #error U_COMMON_IMPLEMENTATION not set - must be set for all ICU source files in common/ - see https://unicode-org.github.io/icu/userguide/howtouseicu #endif @@ -708,7 +710,11 @@ extern U_IMPORT char *U_TZNAME[]; #define TZZONEINFO "/usr/share/lib/zoneinfo/" #define TZ_ENV_CHECK "localtime" #else +#if BUILDFLAG(IS_TIZEN_TV) +#define TZDEFAULT "/opt/etc/localtime" +#else #define TZDEFAULT "/etc/localtime" +#endif #define TZZONEINFO "/usr/share/zoneinfo/" #endif #define TZZONEINFOTAIL "/zoneinfo/" -- 2.7.4