timestamps from local timezone instead of utc
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user