get current timezone from sysconfig/clock file 24/110624/2 accepted/tizen/common/20170117.174912 accepted/tizen/ivi/20170118.040511 accepted/tizen/mobile/20170118.040419 accepted/tizen/tv/20170118.040438 accepted/tizen/wearable/20170118.040454 submit/tizen/20170117.081814
authorMyoungJune Park <mj2004.park@samsung.com>
Tue, 17 Jan 2017 08:06:55 +0000 (17:06 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Tue, 17 Jan 2017 08:11:33 +0000 (17:11 +0900)
Change-Id: I19ef5c1c55d3b60821983efa74052306f602b291
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
data/vconf-internal-setting-keys.xml
packaging/vconf-internal-keys.spec

index 53fdc93..47d03c3 100644 (file)
@@ -787,11 +787,18 @@ GLOBALUSER_APP_DATA_PATH=`tzplatform-get TZ_SYS_GLOBALUSER_DATA | sed 's/^.*=//'
   </vconfkey>
   <vconfkey type="string" name="db/setting/timezone_id" readPriv="http://tizen.org/privilege/internal/default/public" writePriv="http://tizen.org/privilege/systemsettings.admin">
     <header>VCONFKEY_SETAPPL_TIMEZONE_ID</header>
+       <!--
     <initscript><![CDATA[
 # GET CURRENT TIMEZONE LINK
 CUR_TZ_PATH=`readlink /opt/etc/localtime | sed "s/\/usr\/share\/zoneinfo\///"`
 ]]></initscript>
+-->
+    <initscript><![CDATA[
+# GET CURRENT TIMEZONE LINK
+CUR_TZ_PATH=`cat /etc/sysconfig/clock | grep ZONE | sed 's/^.*=//' |  sed s/\"//g`
+]]></initscript>
        <val>${CUR_TZ_PATH}</val>
+       <!--<val>Asia/Seoul</val>-->
     <creator> Myoungjune Park </creator>
     <email>mj2004.park@samsung.com</email>
     <comment><![CDATA[ ]]></comment>
@@ -801,7 +808,7 @@ out=`vconftool get db/setting/timezone_id | awk '{print $4}' | sed 's/,//g'`
 echo "-------------------------------------------------------------------------------------"
 echo $out
 rm -f /opt/etc/localtime
-ln -s /usr/share/zoneinfo/$out /opt/etc/localtime
+ln -s /usr/share/zoneinfo/Asia/Seoul /opt/etc/localtime
 rm -f /etc/localtime
 ln -s /opt/etc/localtime /etc/localtime
 /usr/bin/chsmack -a "System" /opt/etc/localtime
index 7e6dd9e..749c60c 100755 (executable)
@@ -9,6 +9,7 @@ BuildRequires:  cmake
 BuildRequires:  xsltproc
 BuildRequires:  libxml2-tools
 Requires:  vconf
+Requires:  coreutils
 Requires: tizen-platform-config
 Requires: tizen-platform-config-tools