X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e8263f466bf4da10b9577ac6029b3c2f5e1750fb..fe885e6eddd5bf1c893d6c6b6767f2cbba54e8a0:/luatz/timetable.lua diff --git a/luatz/timetable.lua b/luatz/timetable.lua index 783d60b..5c234b6 100644 --- a/luatz/timetable.lua +++ b/luatz/timetable.lua @@ -181,6 +181,7 @@ end function timetable_methods:rfc_3339 ( ) local year , month , day , hour , min , sec = self:unpack ( ) local sec , msec = borrow ( sec , 0 , 1000 ) + msec = math.floor(msec) return strformat ( "%04u-%02u-%02uT%02u:%02u:%02d.%03d" , year , month , day , hour , min , sec , msec ) end