common_time::timezone

Function parse_timezone

source
pub fn parse_timezone(tz: Option<&str>) -> Timezone
Expand description

If the tz = Some("") || None || Some(Invalid timezone), return system timezone, or return parsed tz as timezone.