X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/6c4658848c01ae0862a2fcad7f6565efd9aa948d..ebcbc1838c17993801dc53fee28a21d05f92aacc:/luatz/timetable.lua?ds=inline diff --git a/luatz/timetable.lua b/luatz/timetable.lua index 3e80242..fc89fca 100644 --- a/luatz/timetable.lua +++ b/luatz/timetable.lua @@ -227,7 +227,7 @@ local function new_from_timestamp ( ts ) if type ( ts ) ~= "number" then error ( "bad argument #1 to 'new_from_timestamp' (number expected, got " .. type ( ts ) .. ")" , 2 ) end - return new_timetable ( 1970 , 1 , 1 , 0 , 0 , ts ) + return new_timetable ( 1970 , 1 , 1 , 0 , 0 , ts ):normalise ( ) end return {