timestamps from local timezone instead of utc

This commit is contained in:
Bel LaPointe
2023-12-07 09:09:26 -08:00
parent cf47c63bd7
commit 1235b38636

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()
}
}