(timezone: Option<&str>)
| 217 | } |
| 218 | |
| 219 | pub(crate) fn parse_tz(timezone: Option<&str>) -> Option<JiffTimeZone> { |
| 220 | timezone.and_then(|value| JiffTimeZone::get(value).ok()) |
| 221 | } |
| 222 | |
| 223 | pub(crate) fn format_date(timestamp: TimestampMs, timezone: Option<&str>) -> String { |
| 224 | format_date_tz(timestamp, parse_tz(timezone).as_ref()) |
no outgoing calls