equal
deleted
inserted
replaced
986 value = value.strip() |
986 value = value.strip() |
987 if not value: |
987 if not value: |
988 return None |
988 return None |
989 try: |
989 try: |
990 value = form._cw.parse_datetime(value, self.etype) |
990 value = form._cw.parse_datetime(value, self.etype) |
991 except ValueError, ex: |
991 except ValueError as ex: |
992 raise ProcessFormError(unicode(ex)) |
992 raise ProcessFormError(unicode(ex)) |
993 return value |
993 return value |
994 |
994 |
995 |
995 |
996 class DateTimeField(DateField): |
996 class DateTimeField(DateField): |