From f8a22c0affe52ea630f05a438a88bcc300716d04 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 18 Aug 2014 13:53:02 -0400 Subject: [PATCH] luatz/strftime: Optimize asctime/bypass strftime --- luatz/strftime.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luatz/strftime.lua b/luatz/strftime.lua index 04208b8..55e7b67 100644 --- a/luatz/strftime.lua +++ b/luatz/strftime.lua @@ -199,7 +199,8 @@ local function strftime ( format_string , timetable ) end local function asctime ( timetable ) - return strftime ( "%c\n" , timetable ) + -- Equivalent to the format string "%c\n" + return t.c ( timetable , c_locale ) .. "\n" end return { -- 2.39.5