From d431ae6abaf5b0814389f2adf6069915d2e983c2 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 24 Nov 2013 04:42:40 -0500 Subject: [PATCH] luatz/timetable: Fix incorrect rfc_3339 second format specifier --- luatz/timetable.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5