fix get_weekday() to return a better value
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user