mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 22:21:22 +00:00
GUACAMOLE-1020: Correct issues with DST not being interpreted correctly.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user