# HG changeset patch # User Kim Alvefur # Date 1286919256 -7200 # Node ID de54a7ab7e6eff0f4264237b775a6b6b9e1ac5b9 # Parent bb494c3aa36430b64ed0681270483efe70bdf2a4 MUC: fix timezone support when sending history diff -r bb494c3aa364 -r de54a7ab7e6e plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Fri Oct 08 03:19:20 2010 +0100 +++ b/plugins/muc/muc.lib.lua Tue Oct 12 23:34:16 2010 +0200 @@ -178,7 +178,7 @@ if seconds then seconds = datetime.datetime(os.time() - math.floor(seconds)); end local since = history_tag and history_tag.attr.since; - if since and not since:match("^%d%d%d%d%-%d%d%-%d%dT%d%d:%d%d:%d%dZ$") then since = nil; end -- FIXME timezone support + if since then since = datetime.parse(since); since = since and datetime.datetime(since); end if seconds and (not since or since < seconds) then since = seconds; end local n = 0;