~goorzhel/sota-slack-spotter

b6f526bf4dc97e8aa850cf20c04dff4c40cdcecc — Antonio Gurgel 2 months ago 97a7ab7
Remove seconds from Alert timestamp

They're always ":00", so they can be removed without loss of information.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/sota/alert.rs
M src/sota/alert.rs => src/sota/alert.rs +1 -1
@@ 60,7 60,7 @@ impl SOTAItem for Alert {
    fn format_timestamp(&self) -> String {
        let time = self
            .date_activated
            .format(&parse_format("[year]-[month]-[day] [hour]:[minute]:[second]").unwrap())
            .format(&parse_format("[year]-[month]-[day] [hour]:[minute]").unwrap())
            .unwrap();
        format!("{}Z", time)
    }