summaryrefslogtreecommitdiff
path: root/lib/lsg_web/components/component.ex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/components/component.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lsg_web/components/component.ex b/lib/lsg_web/components/component.ex
index 37d75e3..d504129 100644
--- a/lib/lsg_web/components/component.ex
+++ b/lib/lsg_web/components/component.ex
@@ -3,6 +3,10 @@ defmodule LSGWeb.Component do
@date_time_default_format "%F %H:%M"
@date_time_formats %{"time-24-with-seconds" => "%H:%M:%S"}
+ def naive_date_time_utc(assigns = %{at: nil}) do
+ ""
+ end
+
def naive_date_time_utc(assigns = %{format: format}) do
assigns = assign(assigns, :format, Map.get(@date_time_formats, format, format))
~H"""