Fix MAM start query

This commit is contained in:
Lance Stout 2013-09-24 16:07:50 -07:00
parent 6f64dac262
commit beae845281

View file

@ -25,13 +25,13 @@ class MAM(ElementBase):
self._results = []
def get_start(self):
timestamp = self._get_attr('start')
timestamp = self._get_sub_text('start')
return xep_0082.parse(timestamp)
def set_start(self, value):
if isinstance(value, dt.datetime):
value = xep_0082.format_datetime(value)
self._set_attr('start', value)
self._set_sub_text('start', value)
def get_end(self):
timestamp = self._get_sub_text('end')