From cd81170fb4281c1ea7afb52736808bc5d99071d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Sun, 16 Jun 2024 22:14:13 +0200 Subject: [PATCH] fix: bootstrap timezone (#325) --- toggl/utils/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toggl/utils/bootstrap.py b/toggl/utils/bootstrap.py index 0df9984..24f2325 100644 --- a/toggl/utils/bootstrap.py +++ b/toggl/utils/bootstrap.py @@ -192,7 +192,7 @@ def start(self): # type: () -> dict inquirer.Text('timezone', 'Timezone to use (value \'{}\', will keep Toggl\'s setting)'.format(self.TOGGL_TIMEZONE), default=self.SYSTEM_TIMEZONE, - validate=lambda answers, current: current in pendulum.timezones + validate=lambda answers, current: current in pendulum.timezones() or current == self.SYSTEM_TIMEZONE or current == self.TOGGL_TIMEZONE), inquirer.List('theme', message='What theme should be used for the CLI interface?',