fix(time): apply timezone before lcd startup

This commit is contained in:
chenjintao
2026-08-25 09:55:39 +08:00
parent ceb0780425
commit f33ad70c16
7 changed files with 57 additions and 5 deletions
+5 -3
View File
@@ -406,10 +406,12 @@ void domain_runtime_register_birth_profile_observer(domain_birth_profile_observe
/**
* @brief Wall-clock time synchronization, bridged to the platform SNTP
* primitive. `start` is idempotent and sets the process time zone
* (`posix_tz`, e.g. "CST-8"); `is_synced` reports whether the clock has
* been set. Call `start` after the network is up.
* primitive. `set_timezone` applies local-time conversion without
* network access. `start` is idempotent and also applies the process
* time zone (`posix_tz`, e.g. "CST-8"); `is_synced` reports whether the
* clock has been set. Call `start` after the network is up.
*/
esp_err_t domain_runtime_time_set_timezone(const char *posix_tz);
esp_err_t domain_runtime_time_sync_start(const char *sntp_server, const char *posix_tz);
bool domain_runtime_time_is_synced(void);