From 3bb3cd6993d2910465312584098bf65546cd4680 Mon Sep 17 00:00:00 2001 From: Omkar Kesarkhane <127078473+omkarK06@users.noreply.github.com> Date: Mon, 16 Sep 2024 19:13:55 +0530 Subject: [PATCH] fix: Added by default timezone for send now schedule (#4563) #4564 ## Summary by CodeRabbit - **New Features** - Enhanced report creation by capturing and storing timezone information alongside scheduled times. - Improved accuracy in scheduling and reporting for applications operating across different time zones. --- web/src/components/reports/CreateReport.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/components/reports/CreateReport.vue b/web/src/components/reports/CreateReport.vue index fd25e6ea37..c92997cb8a 100644 --- a/web/src/components/reports/CreateReport.vue +++ b/web/src/components/reports/CreateReport.vue @@ -1281,6 +1281,11 @@ const saveReport = async () => { scheduling.value.time = `${hours}:${minutes}`; } + // If the user has selected to schedule now, we set the timezone to the current timezone + if (selectedTimeTab.value === "scheduleNow") { + scheduling.value.timezone = timezone.value; + } + const convertedDateTime = convertDateToTimestamp( scheduling.value.date, scheduling.value.time,