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

This commit is contained in:
Virtually Nick
2023-11-04 21:31:54 -04:00
parent e7279f0a8d
commit 1b7c35e189
3 changed files with 43 additions and 19 deletions

View File

@@ -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