From 91e3ea44f6f2c9249b5901992a63fd4eed443513 Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Fri, 26 Jan 2024 21:33:41 +0100 Subject: [PATCH] Fix timezone selection --- lib/l10n/app_en.arb | 3 ++- lib/l10n/app_es.arb | 3 ++- lib/screens/clients/client/blocking_schedule_modal.dart | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 5c8adbf..5bba23a 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -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" } \ No newline at end of file diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 6185a8f..c803224 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -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" } \ No newline at end of file diff --git a/lib/screens/clients/client/blocking_schedule_modal.dart b/lib/screens/clients/client/blocking_schedule_modal.dart index c0b2a43..239f762 100644 --- a/lib/screens/clients/client/blocking_schedule_modal.dart +++ b/lib/screens/clients/client/blocking_schedule_modal.dart @@ -64,7 +64,6 @@ class _BlockingScheduleModalState extends State { @override void initState() { tz.initializeTimeZones(); - _timezone = tz.local.name; if (widget.schedule != null) { _timezone = widget.schedule!.timezone; _weekdays = widget.schedule!.weekday;