pub fn clock_time(recorded_at: &str) -> String {
let time = recorded_at
.split_once('T')
.map_or(recorded_at, |(_, time)| time);
let clock = time.get(..8).unwrap_or(time);
match time.ends_with('Z') {
true => format!("{clock}Z"),
false => clock.to_owned(),
}
}