X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/6c4658848c01ae0862a2fcad7f6565efd9aa948d..6058aa9e63278e4ae7400c6f8b91540718821d17:/luatz/timetable.lua?ds=sidebyside 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 {