diff options
author | href <href@random.sh> | 2021-09-07 08:39:24 +0200 |
---|---|---|
committer | href <href@random.sh> | 2021-09-07 08:39:24 +0200 |
commit | d6d6bcda38e661ddebb666fabcc1a00034d5ad4b (patch) | |
tree | 49c3b6995c3d70ada1e71e8676cb562c9628f726 /lib/lsg_irc | |
parent | various fixes (diff) |
update telegram, alcolog fix
Diffstat (limited to 'lib/lsg_irc')
-rw-r--r-- | lib/lsg_irc/alcolog_plugin.ex | 2 |
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 |