summaryrefslogtreecommitdiff
path: root/lib/util.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-11 19:07:09 +0000
committerJordan Bracco <href@random.sh>2022-12-11 19:07:09 +0000
commitbc3d5b7f4f54d88a2ebf1cadbcd7e2816f07deaa (patch)
treee4880c66b7a2c79de59fd24107c498ba3b0e518b /lib/util.ex
parentfeat(telegram): create account for telegram user (diff)
Fix the fixes.
Diffstat (limited to 'lib/util.ex')
-rw-r--r--lib/util.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.ex b/lib/util.ex
index ce46174..8bd3b9d 100644
--- a/lib/util.ex
+++ b/lib/util.ex
@@ -11,7 +11,7 @@ defmodule Util do
def to_date_time(naive_or_timestamp, timezone \\ "Europe/Paris")
def to_date_time(date = %DateTime{}, timezone) do
- DateTime.shift_zone!(data, timezone, Tzdata.TimeZoneDatabase)
+ DateTime.shift_zone!(date, timezone, Tzdata.TimeZoneDatabase)
end
def to_date_time(naive = %NaiveDateTime{}, timezone) do