[github-activity] typo
This commit is contained in:
parent
45f92c220b
commit
31232a556d
|
@ -45,7 +45,7 @@ local function parse_date(date_str)
|
||||||
return os.time{year = y, month = m, day = d, hour = h, min = min, sec = sec}
|
return os.time{year = y, month = m, day = d, hour = h, min = min, sec = sec}
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Converts seconds to "time ago" represenation, like '1 hour ago'
|
--- Converts seconds to "time ago" representation, like '1 hour ago'
|
||||||
local function to_time_ago(seconds)
|
local function to_time_ago(seconds)
|
||||||
local days = seconds / 86400
|
local days = seconds / 86400
|
||||||
if days > 1 then
|
if days > 1 then
|
||||||
|
|
Loading…
Reference in New Issue