From: daurnimator Date: Sun, 24 Nov 2013 09:42:40 +0000 (-0500) Subject: luatz/timetable: Fix incorrect rfc_3339 second format specifier X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/d431ae6abaf5b0814389f2adf6069915d2e983c2?ds=inline luatz/timetable: Fix incorrect rfc_3339 second format specifier --- diff --git a/luatz/timetable.lua b/luatz/timetable.lua index c337f4a..8c44f2f 100644 --- a/luatz/timetable.lua +++ b/luatz/timetable.lua @@ -151,8 +151,8 @@ function timetable_methods:timestamp ( ) end function timetable_methods:rfc_3339 ( ) - -- %06.4g gives 3 (=6-4+1) digits after decimal - return strformat ( "%04u-%02u-%02uT%02u:%02u:%06.4g" , self:unpack ( ) ) + -- %06.3f gives 3 (=6-3) digits after decimal + return strformat ( "%04u-%02u-%02uT%02u:%02u:%06.3f" , self:unpack ( ) ) end local timetable_mt