From: sinikang Date: Thu, 11 Oct 2018 02:08:28 +0000 (+0900) Subject: Fix svace issue (WGID 308150) X-Git-Tag: submit/tizen/20181106.050612^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ffd742b00c66adf7c3124ea061b4386d109119f;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-nitz.git Fix svace issue (WGID 308150) Change-Id: I98ba5a2577d2e501d60d55c3da4d66a425bb1ce7 --- diff --git a/packaging/tel-plugin-nitz.spec b/packaging/tel-plugin-nitz.spec index bdc469b..b4fb1f1 100644 --- a/packaging/tel-plugin-nitz.spec +++ b/packaging/tel-plugin-nitz.spec @@ -3,7 +3,7 @@ %define major 0 %define minor 1 -%define patchlevel 79 +%define patchlevel 80 Name: tel-plugin-nitz Summary: nitz plugin for telephony diff --git a/src/time_update.c b/src/time_update.c index 9b2d744..e6b2105 100644 --- a/src/time_update.c +++ b/src/time_update.c @@ -330,6 +330,7 @@ GList * nitz_get_tzlist(char *iso) cal = ucal_open(timezone_id, u_strlen(timezone_id), uloc_getDefault(), UCAL_TRADITIONAL, &ec); in_dst = ucal_inDaylightTime(cal, &ec); + in_dst = (in_dst == 1) ? 1 : 0; offset = ucal_get(cal, UCAL_ZONE_OFFSET, &ec); offset_hash = (offset/1800000) + 24; ucal_close(cal);