Skip to content

Commit 3d01a21

Browse files
committed
Use System default for timezone
1 parent 73f7461 commit 3d01a21

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/main/java/org/mangorage/mangobotsite/website/servlet/data/category

src/main/java/org/mangorage/mangobotsite/website/servlet/data/category/CategoryData.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
public record CategoryData(String name, List<CategoryItemData> info) {
1313
static String time(long epochMilli) {
1414
// Convert milliseconds to ZonedDateTime in Los Angeles timezone
15-
ZonedDateTime zdt = Instant.ofEpochMilli(epochMilli)
16-
.atZone(ZoneId.of("America/Los_Angeles"));
15+
ZonedDateTime zdt = Instant.ofEpochMilli(epochMilli).atZone(ZoneId.systemDefault());
1716

1817
// Create formatter for: Jan 1, 1900 @ 12:00
1918
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMM d, yyyy @ HH:mm (zzz)");

0 commit comments

Comments
 (0)