summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/alcolog_plugin.ex
diff options
context:
space:
mode:
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