timestamps from local timezone instead of utc

main
Bel LaPointe 2023-12-07 09:09:26 -08:00
parent cf47c63bd7
commit 1235b38636
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ impl X {
}
fn timestamp(&self) -> String {
let dt = DateTime::from_timestamp(self.t, 0).unwrap();
let dt = Local.timestamp_opt(self.t, 0).unwrap();
dt.format("%Y-%m-%d").to_string()
}
}