added synchronization of time in RTC