Skip to main content

apply_pre_runtime_tz

Function apply_pre_runtime_tz 

Source
pub fn apply_pre_runtime_tz(config: &RuntimeConfig)
Expand description

Apply process-wide timezone config before constructing the Tokio runtime.

std::env::set_var("TZ", ...) is unsafe once other threads may read the environment. Production main() calls this after config merge and before tokio::runtime::Builder::new_multi_thread().