tools (date_utils): moved date_parse to common.date_utils, because it can be used in frontends
This commit is contained in:
parent
d36f76e7d3
commit
0242772939
1 changed files with 21 additions and 17 deletions
|
|
@ -26,6 +26,7 @@ from wokkel import disco, iwokkel
|
|||
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 @@ class XEP_0234(object):
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue