From: daurnimator Date: Sat, 11 Mar 2017 03:39:24 +0000 (+1100) Subject: luatz/tzinfo: Add __name field to metatables X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/a90e68208dd5bd982fe457b6a4f2c1198db37f7a luatz/tzinfo: Add __name field to metatables --- diff --git a/luatz/tzinfo.lua b/luatz/tzinfo.lua index 75be0f1..3ff0a07 100644 --- a/luatz/tzinfo.lua +++ b/luatz/tzinfo.lua @@ -11,9 +11,11 @@ end local tz_info_methods = { } local tz_info_mt = { + __name = "luatz.tz_info"; __index = tz_info_methods ; } local tt_info_mt = { + __name = "luatz.tt_info"; __tostring = function ( self ) return string.format ( "tt_info:%s=%d" , self.abbr , self.gmtoff ) end ;