add CONFIG_LIBC_LOCALTIME support
add CONFIG_LIBC_LOCALTIME support

With CONFIG_LIBC_LOCALTIME enabled tm struct components were not getting calculated as flag was missing

Signed-off-by: Vidisha Thapa <3d8bcdb46ae40344d12a5a0255e34cf386c7657a@samsung.com>

sunghan-chang/TizenRT,an4967/TizenRT,heejin-kim/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,Parkjihooni6186/TizenRT,lokeshbv/TizenRT,JeongJunSik/TizenRT,sangwon03/TizenRT,JeonginKim/TizenRT,HONGCHAEHEE/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,jeongchanKim/TizenRT,HONGCHAEHEE/TizenRT,heejin-kim/TizenRT,jeongchanKim/TizenRT,davidfather/TizenRT,lokeshbv/TizenRT,junmin-kim/TizenRT,btheosam/TizenRT,Samsung/TizenRT,Parkjihooni6186/TizenRT,sunghan-chang/TizenRT,heejin-kim/TizenRT,btheosam/TizenRT,jsdosa/TizenRT,jeongarmy/TizenRT,jeongchanKim/TizenRT,lokeshbv/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,JeongJunSik/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,heejin-kim/TizenRT,sangwon03/TizenRT,pillip8282/TizenRT,HONGCHAEHEE/TizenRT,jsdosa/TizenRT,shivgarg/TizenRT,jsdosa/TizenRT,chanijjani/TizenRT,pillip8282/TizenRT,yashwanth686007/TizenRTOS,heejin-kim/TizenRT,chanijjani/TizenRT,davidfather/TizenRT,an4967/TizenRT,an4967/TizenRT,sangwon03/TizenRT,junmin-kim/TizenRT,btheosam/TizenRT,jeongarmy/TizenRT,yashwanth686007/TizenRTOS,chanijjani/TizenRT,an4967/TizenRT,chanijjani/TizenRT,pillip8282/TizenRT,yashwanth686007/TizenRTOS,sunghan-chang/TizenRT,Samsung/TizenRT,sunghan-chang/TizenRT,shivgarg/TizenRT,JeongJunSik/TizenRT,HONGCHAEHEE/TizenRT,yashwanth686007/TizenRTOS,JeonginKim/TizenRT,JeonginKim/TizenRT,btheosam/TizenRT,JeongJunSik/TizenRT,lokeshbv/TizenRT,davidfather/TizenRT,jeongarmy/TizenRT,jeongchanKim/TizenRT,shivgarg/TizenRT,lokeshbv/TizenRT,shivgarg/TizenRT,chanijjani/TizenRT,heejin-kim/TizenRT,Parkjihooni6186/TizenRT,HONGCHAEHEE/TizenRT,JeonginKim/TizenRT,Parkjihooni6186/TizenRT,Samsung/TizenRT,sunghan-chang/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,yashwanth686007/TizenRTOS,sunghan-chang/TizenRT,btheosam/TizenRT,davidfather/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,Parkjihooni6186/TizenRT,an4967/TizenRT,Samsung/TizenRT,JeongJunSik/TizenRT,pillip8282/TizenRT,an4967/TizenRT,btheosam/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,Samsung/TizenRT,shivgarg/TizenRT,yashwanth686007/TizenRTOS,JeonginKim/TizenRT,JeongJunSik/TizenRT,sangwon03/TizenRT,shivgarg/TizenRT,JeonginKim/TizenRT,davidfather/TizenRT,Parkjihooni6186/TizenRT,HONGCHAEHEE/TizenRT,chanijjani/TizenRT,lokeshbv/TizenRT,sunghan-chang/TizenRT,sangwon03/TizenRT,jsdosa/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,chanijjani/TizenRT,sangwon03/TizenRT,jsdosa/TizenRT