Esempio n. 1
0
 def convert2UserTimezone(self, timest):
     return convert2UserTimezone(timest)
Esempio n. 2
0
 def convertToLocalTimeString(self, argdatetime):
     """Converts to local time
     """
     userTimestmp = convert2UserTimezone(argdatetime)
     return userTimestmp.strftime('%d.%m.%Y %H:%M:%S %Z')
Esempio n. 3
0
 def getModifiedTime(self):
     modTS = IZopeDublinCore(self.context).modified
     if modTS is not None:
         return convert2UserTimezone(IZopeDublinCore(self.context).modified)
     else:
         return None
Esempio n. 4
0
 def convert2UserTimezone(self, argTS):
     if argTS is not None:
         return convert2UserTimezone(argTS)
     else:
         return None