diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index 65cc204772a..cc490b9e733 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import datetime +from zoneinfo import ZoneInfo import flask_login import locale diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index 98190483509..334629882fa 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -179,6 +179,8 @@ class ScheduleLimitForm(Form): sunday = FormField(ScheduleLimitDaySubForm) timezone_offset = StringField("Timezone to run in") + #@todo validate timezone_offset, either by name or + class TimeBetweenCheckForm(Form): weeks = IntegerField('Weeks', validators=[validators.Optional(), validators.NumberRange(min=0, message="Should contain zero or more seconds")])