fix get_weekday() to return a better value

This commit is contained in:
Adrian Malacoda 2018-04-30 10:30:48 -05:00
parent c2a8d5b938
commit 45031b505f

View File

@ -19,8 +19,9 @@ function get_sleep_duration_sec ()
end
end
-- Returns full weekday all lowercased (monday, tuesday, etc)
function get_weekday ()
return os.date("%a", os.time())
return string.lower(os.date("%A", os.time()))
end
function sleep (sec)