Page 1 of 1

ESP RMAKER TIME SYNC - Incorrect

Posted: Thu Nov 09, 2023 12:18 pm
by JoshNOA
Hi Guys,

So I have the time sync enabled for the rmaker_client, but when it goes online, its retrieving all zeros as unix time, giving me 1st Jan 1970 00:00:00, which is obviously wrong:

I (54120) esp_rmaker_param: Received params: {"Time":{"TZ":"Europe/London"}}
I (54120) esp_rmaker_time_service: Received value = Europe/London for Time - TZ
I (54127) esp_rmaker_time: Time not synchronised yet.
I (54130) esp_rmaker_time: The current time is: Thu Jan 1 00:01:11 1970 +0000[GMT], DST: No.
I (54141) esp_rmaker_param: Reporting params: {"Time":{"TZ-POSIX":"GMT0BST,M3.5.0/1,M10.5.0"}}
I (54152) esp_rmaker_param: Reporting params: {"Time":{"TZ":"Europe/London"}}

Re: ESP RMAKER TIME SYNC - Incorrect

Posted: Thu Nov 09, 2023 12:49 pm
by ESP_Piyush
This print just indicates what the current time for the provided time zone is. As you can see it also says that time is not synchronised yet. Whenever the firmware gets the network time from SNTP, which should be within 30 seconds of connecting to the Internet, you should get a print like this:

I (8264) esp_rmaker_time: SNTP Synchronised.
I (8264) esp_rmaker_time: The current time is: Thu Nov 9 02:31:58 2023 +0800[CST], DST: No.

Re: ESP RMAKER TIME SYNC - Incorrect

Posted: Thu Nov 09, 2023 1:16 pm
by JoshNOA
Hi Pal,

Thanks for the clarification, Got it working as intended!

Best Wishes,

JC