Fix setting service and add log on time function
authorJoohyun Kim <joohyune.kim@samsung.com>
Sat, 17 Aug 2013 00:24:18 +0000 (09:24 +0900)
committerJoohyun Kim <joohyune.kim@samsung.com>
Sat, 17 Aug 2013 00:24:18 +0000 (09:24 +0900)
Change-Id: I8bee3acf963a737dc38a169032849ede020d79ce
Signed-off-by: Joohyun Kim <joohyune.kim@samsung.com>
src/system/FSys_SettingInfoImpl.cpp
src/system/FSys_SystemTimeImpl.cpp

index 26cec35..d131e3f 100644 (file)
@@ -88,6 +88,7 @@ _SettingInfoImpl::InitSettingClient(void)
 {
        if(pSettingClient == null && pSettingClientEx == null)
        {
+/*
                if(File::IsFileExist(_COMMON_SERVICE_ENABLED) == false)
                {
                        if(pSettingClient == null)
@@ -96,6 +97,7 @@ _SettingInfoImpl::InitSettingClient(void)
                        }
                }
                else
+*/
                {
                        common_mode = true;
                        if(pSettingClientEx == null)
index accfdb9..3109958 100644 (file)
@@ -82,10 +82,12 @@ _SystemTimeImpl::GetCurrentTime(TimeMode timeMode, DateTime& currentTime)
        _LocaleManagerImpl* plm = null;
 
        time(&currTime);
+       SysLog(NID_SYS, "Current Epoch is %lld.", currTime);
        gettimeofday(&currentTimeVal, null);
 
        pGmTime = gmtime(&currTime);
        SysTryReturnResult(NID_SYS, null != pGmTime, E_SYSTEM, "Failed to convert the time value to UTC time");
+       SysLog(NID_SYS, "Calendar time is sec:%d, min:%d, hour:%d, day:%d, mon:%d, year:%d, wday%d, year:%d, dst:%d", pGmTime->tm_sec, pGmTime->tm_min, pGmTime->tm_hour, pGmTime->tm_mday, pGmTime->tm_mon, pGmTime->tm_year, pGmTime->tm_wday, pGmTime->tm_yday, pGmTime->tm_isdst);
 
        plm = new (std::nothrow) _LocaleManagerImpl();
        SysTryReturnResult(NID_SYS, null != plm, E_SYSTEM, "_LocaleManagerImpl instance must not be null");