Mercurial > libervia-backend
diff sat/plugins/plugin_exp_events.py @ 2612:3e4e78de9cca
tools (date_utils): moved date_parse to common.date_utils, because it can be used in frontends
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Jun 2018 01:21:44 +0200 |
parents | 26edcf3a30eb |
children | 1cc88adb5142 |
line wrap: on
line diff
--- a/sat/plugins/plugin_exp_events.py Thu Jun 21 01:21:44 2018 +0200 +++ b/sat/plugins/plugin_exp_events.py Thu Jun 21 01:21:44 2018 +0200 @@ -24,6 +24,7 @@ log = getLogger(__name__) from sat.tools import utils from sat.tools.common import uri as uri_parse +from sat.tools.common import date_utils from twisted.internet import defer from twisted.words.protocols.jabber import jid, error from twisted.words.xish import domish @@ -111,7 +112,7 @@ raise exceptions.NotFound(_(u"No event with this id has been found")) try: - timestamp = utils.date_parse(next(event_elt.elements(NS_EVENT, "date"))) + timestamp = date_utils.date_parse(next(event_elt.elements(NS_EVENT, "date"))) except StopIteration: timestamp = -1