diff sat/plugins/plugin_xep_0234.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 282d1314d574
children 56f94936df1e
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0234.py	Thu Jun 21 01:21:44 2018 +0200
+++ b/sat/plugins/plugin_xep_0234.py	Thu Jun 21 01:21:44 2018 +0200
@@ -26,6 +26,7 @@
 from zope.interface import implements
 from sat.tools import utils
 from sat.tools import stream
+from sat.tools.common import date_utils
 import os.path
 from twisted.words.xish import domish
 from twisted.words.protocols.jabber import jid
@@ -210,7 +211,7 @@
             pass
 
         try:
-            file_data[u'modified'] = utils.date_parse(next(file_elt.elements(NS_JINGLE_FT, u'date')))
+            file_data[u'modified'] = date_utils.date_parse(next(file_elt.elements(NS_JINGLE_FT, u'date')))
         except StopIteration:
             pass