Update: Correct log message to display UTC instead of KST time
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
This commit is contained in:
@@ -138,7 +138,7 @@ void time_sync_notification_cb(struct timeval* tv)
|
||||
time(&now);
|
||||
localtime_r(&now, &timeinfo);
|
||||
strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo);
|
||||
ESP_LOGI(TAG, "The current date/time in KST is: %s", strftime_buf);
|
||||
ESP_LOGI(TAG, "The current date/time in UTC is: %s", strftime_buf);
|
||||
}
|
||||
|
||||
void initialize_sntp(void)
|
||||
|
||||
Reference in New Issue
Block a user