Skip to content

Commit

Permalink
explicitly use UTF for calendars, not "system default"
Browse files Browse the repository at this point in the history
  • Loading branch information
barneyb committed Jun 10, 2024
1 parent cce2b8b commit 1330df6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.springframework.stereotype.Service;

import java.time.Duration;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.temporal.ChronoUnit;
import java.util.Collection;
import java.util.Comparator;
Expand Down Expand Up @@ -114,7 +114,7 @@ private DtStart getEventStartDate(PlanItem item) {
java.util.Date dt = java.util.Date.from(
item.getBucket()
.getDate()
.atStartOfDay(ZoneId.systemDefault())
.atStartOfDay(ZoneOffset.UTC)
.toInstant());
return new DtStart(new Date(dt));
}
Expand Down

0 comments on commit 1330df6

Please sign in to comment.