[M108 Migration] Fix timezone incorrect issue 74/289574/6
authorfang fengrong <fr.fang@samsung.com>
Thu, 9 Mar 2023 00:47:46 +0000 (08:47 +0800)
committerfengrong fang <fr.fang@samsung.com>
Wed, 15 Mar 2023 05:21:07 +0000 (05:21 +0000)
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 <fr.fang@samsung.com>
third_party/icu/source/common/putil.cpp

index 41f6e3c..f18d845 100644 (file)
@@ -80,6 +80,8 @@
 #include <locale.h>
 #include <float.h>
 
+#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/"