Pull request: fix schedule timezone

Updates #6401

Squashed commit of the following:

commit 0ed83fd52fe8cf9bd5a8d438e81534799a7fdd83
Author: Ildar Kamalov <ik@adguard.com>
Date:   Fri Nov 10 16:09:04 2023 +0300

    ADG-7720 fix schedule timezone
This commit is contained in:
Ildar Kamalov 2023-11-10 17:04:56 +03:00
parent 53170d8711
commit 4b9947da88
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
### Fixed
- Missing timezone on schedule form submission ([#6401]).
- Average request processing time calculation ([#6220]).
- Redundant shortening long client names in the Top Clients table ([#6338]).
- Scrolling column headers in the tables ([#6337]).
@ -60,6 +61,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
[#6357]: https://github.com/AdguardTeam/AdGuardHome/issues/6357
[#6358]: https://github.com/AdguardTeam/AdGuardHome/issues/6358
[#6368]: https://github.com/AdguardTeam/AdGuardHome/issues/6368
[#6401]: https://github.com/AdguardTeam/AdGuardHome/issues/6401
<!--
NOTE: Add new changes ABOVE THIS COMMENT.

View File

@ -81,6 +81,10 @@ export const Modal = ({
};
});
if (timezone !== intialTimezone) {
newSchedule.time_zone = timezone;
}
onSubmit(newSchedule);
};