From 1235b3863636a2c3fd8861bb9b8209fe753321a2 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Thu, 7 Dec 2023 09:09:26 -0800 Subject: [PATCH] timestamps from local timezone instead of utc --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 29397f3..51bc35a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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() } }