def get_tz(self):
     if not self.xml.text:
         return xep_0082.tzutc()
     try:
         time = xep_0082.parse('00:00:00%s' % self.xml.text)
         return time.tzinfo
     except ValueError:
         return self.xml.text
Esempio n. 2
0
 def get_tz(self):
     if not self.xml.text:
         return xep_0082.tzutc()
     try:
         time = xep_0082.parse('00:00:00%s' % self.xml.text)
         return time.tzinfo
     except ValueError:
         return self.xml.text
Esempio n. 3
0
 def get_tz(self):
     if not self.xml.text:
         return xep_0082.tzutc()
     time = xep_0082.parse('00:00:00%s' % self.xml.text)
     return time.tzinfo