Fix timezone selection

This commit is contained in:
Juan Gilsanz Polo 2024-01-26 21:33:41 +01:00
parent 770366eae6
commit 91e3ea44f6
3 changed files with 4 additions and 3 deletions

View file

@ -746,5 +746,6 @@
"selectStartTime": "Select start time",
"selectEndTime": "Select end time",
"startTimeBeforeEndTime": "Start time must be before end time.",
"noBlockingScheduleThisDevice": "There's no blocking schedule for this device."
"noBlockingScheduleThisDevice": "There's no blocking schedule for this device.",
"selectTimezone": "Select a timezone"
}

View file

@ -746,5 +746,6 @@
"selectStartTime": "Seleccionar hora de inicio",
"selectEndTime": "Seleccionar hora de fin",
"startTimeBeforeEndTime": "La hora de inicio debe ser anterior a la hora de fin.",
"noBlockingScheduleThisDevice": "No hay programación de bloqueo para este dispositivo."
"noBlockingScheduleThisDevice": "No hay programación de bloqueo para este dispositivo.",
"selectTimezone": "Selecciona una zona horaria"
}

View file

@ -64,7 +64,6 @@ class _BlockingScheduleModalState extends State<BlockingScheduleModal> {
@override
void initState() {
tz.initializeTimeZones();
_timezone = tz.local.name;
if (widget.schedule != null) {
_timezone = widget.schedule!.timezone;
_weekdays = widget.schedule!.weekday;