GUACAMOLE-1020: Correct issues with DST not being interpreted correctly.

This commit is contained in:
Virtually Nick committed 2024-09-28 07:57:24 -04:00
1 parent e7279f0a8d
commit 1b7c35e189
3 files changed
+43 -19

No files matched your search

@@ -122,7 +122,7 @@ public class DailyRestriction {
* otherwise false.
*/
public boolean appliesNow() {
DayOfWeek currentDay = LocalDate.now().getDayOfWeek();
DayOfWeek currentDay = LocalDate.now(ZoneId.of("UTC")).getDayOfWeek();
LocalTime currentTime = LocalTime.now(ZoneId.of("UTC"));
// Check that we are in the specified time restriction