fix get_weekday() to return a better value
This commit is contained in:
parent
c2a8d5b938
commit
45031b505f
@ -19,8 +19,9 @@ function get_sleep_duration_sec ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Returns full weekday all lowercased (monday, tuesday, etc)
|
||||||
function get_weekday ()
|
function get_weekday ()
|
||||||
return os.date("%a", os.time())
|
return string.lower(os.date("%A", os.time()))
|
||||||
end
|
end
|
||||||
|
|
||||||
function sleep (sec)
|
function sleep (sec)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user