X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2d6b75a796ed12acc8aecf427d2eda1ba9b53b7d..e8263f466bf4da10b9577ac6029b3c2f5e1750fb:/luatz/strftime.lua?ds=sidebyside diff --git a/luatz/strftime.lua b/luatz/strftime.lua index 04208b8..51410cf 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 strformat ( t.c ( timetable , c_locale ) ) .. "\n" end return {