fix(time): apply timezone before lcd startup
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user