From a809e6fc8a079b8db520aebdb5567d7cf55c1559 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 24 Jul 2013 11:55:16 -0400 Subject: [PATCH 1/1] src/timetable: __eq was actually __lt; add __eq. --- src/timetable.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/timetable.lua b/src/timetable.lua index e7f2816..882d8fd 100644 --- a/src/timetable.lua +++ b/src/timetable.lua @@ -151,6 +151,9 @@ local timetable_mt = { __index = timetable_methods ; __tostring = timetable_methods.rfc_3339 ; __eq = function ( a , b ) + return a:timestamp() == b:timestamp() + end ; + __lt = function ( a , b ) return a:timestamp() < b:timestamp() end ; } -- 2.39.5