From 4c24c3fd3fbe0fcba71c9bb70dd4e3261eb8202c Mon Sep 17 00:00:00 2001 From: MyoungJune Park Date: Sat, 24 Oct 2015 14:31:19 +0900 Subject: [PATCH] access /etc/localtime by vconf, not by symlink Change-Id: I3430c04a5168cd83281724301dd031c9b405ac13 Signed-off-by: MyoungJune Park --- src/system_setting_platform.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/system_setting_platform.c b/src/system_setting_platform.c index 20d0b16..c9b0db1 100644 --- a/src/system_setting_platform.c +++ b/src/system_setting_platform.c @@ -1582,9 +1582,11 @@ int system_setting_unset_changed_callback_locale_timeformat_24hour(system_settin return system_setting_vconf_unset_changed_cb(VCONFKEY_REGIONFORMAT_TIME1224, 3); } + //VCONFKEY_SETAPPL_TIMEZONE_ID int system_setting_get_locale_timezone(system_settings_key_e key, system_setting_data_type_e data_type, void **value) { SETTING_TRACE_BEGIN; +#if 0 char tzpath[256]; ssize_t len = readlink(SETTING_TZONE_SYMLINK_PATH, tzpath, sizeof(tzpath) - 1); if (len != -1) { @@ -1593,10 +1595,12 @@ int system_setting_get_locale_timezone(system_settings_key_e key, system_setting SETTING_TRACE("parse error for SETTING_TZONE_SYMLINK_PATH"); return SYSTEM_SETTINGS_ERROR_IO_ERROR; } - /* "/usr/share/zoneinfo/Asia/Seoul" */ SETTING_TRACE("tzpath : %s ", &tzpath[20]); *value = strdup(&tzpath[20]); +#else + *value = vconf_get_str(VCONFKEY_SETAPPL_TIMEZONE_ID); +#endif return SYSTEM_SETTINGS_ERROR_NONE; } -- 2.7.4