fixing time issue with rtc