pub fn format_timestamp(ts: i64) -> Option<String>