Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
204 B · 9 lines
Elixir
at main
12345678910defmodule TrackerWeb.Time do alias Tracker.TimeZone
def format_datetime(datetime, time_zone) do datetime |> TimeZone.shift!(time_zone) |> Calendar.strftime("%Y-%m-%d %H:%M %Z") endend