mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
start time runtime env fix
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
defmodule PlantIdDiscordBot.Utils do
|
||||
@start_time Application.get_env(:plantid_discord_bot, :start_time)
|
||||
|
||||
def get_uptime() do
|
||||
DateTime.diff(DateTime.utc_now(), @start_time)
|
||||
start_time = Application.get_env(:plantid_discord_bot, :start_time)
|
||||
|
||||
DateTime.diff(DateTime.utc_now(), start_time)
|
||||
|> PlantIdDiscordBot.Utils.Duration.sec_to_str()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user