timestamps from local timezone instead of utc
parent
cf47c63bd7
commit
1235b38636
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue