diff --git a/gluon/validators.py b/gluon/validators.py index c8398848..d6f03efd 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -2247,7 +2247,8 @@ class IS_DATETIME(Validator): time.strptime(value, str(self.format)) value = datetime.datetime(y, m, d, hh, mm, ss) if self.timezone is not None: - value = self.timezone.localize(value).astimezone(utc) + # TODO: https://github.com/web2py/web2py/issues/1094 (temporary solution) + value = self.timezone.localize(value).astimezone(utc).replace(tzinfo=None) return (value, None) except: self.extremes.update(IS_DATETIME.nice(self.format))