summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/alcolog_plugin.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-07 08:39:24 +0200
committerhref <href@random.sh>2021-09-07 08:39:24 +0200
commitd6d6bcda38e661ddebb666fabcc1a00034d5ad4b (patch)
tree49c3b6995c3d70ada1e71e8676cb562c9628f726 /lib/lsg_irc/alcolog_plugin.ex
parentvarious fixes (diff)
update telegram, alcolog fix
Diffstat (limited to '')
-rw-r--r--lib/lsg_irc/alcolog_plugin.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lsg_irc/alcolog_plugin.ex b/lib/lsg_irc/alcolog_plugin.ex
index 685b061..f00f7f4 100644
--- a/lib/lsg_irc/alcolog_plugin.ex
+++ b/lib/lsg_irc/alcolog_plugin.ex
@@ -1121,7 +1121,7 @@ defmodule LSG.IRC.AlcoologPlugin do
weight = meta.weight
peak = (10*volume)/(k*weight)
date = case date do
- date when is_binary(date) -> DateTime.from_unix!(date, :millisecond)
+ ts when is_integer(ts) -> DateTime.from_unix!(ts, :millisecond)
date = %NaiveDateTime{} -> DateTime.from_naive!(date, "Etc/UTC")
date = %DateTime{} -> date
end