Skip to content

Commit c1d8a7e

Browse files
committed
fix bug: DTSTART and other is not 24-hour clock
1 parent 1ff5b60 commit c1d8a7e

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

src/main/java/com/github/leafee98/CSTI/core/generate/VAlarmGenerator.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/java/com/github/leafee98/CSTI/core/utils/TimeFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public TimeFormatter(ZoneId zoneId) {
2323
public String utc(LocalDateTime dateTime) {
2424
ZonedDateTime local = dateTime.atZone(zoneId);
2525
ZonedDateTime utc= local.withZoneSameInstant(ZoneId.of("UTC"));
26-
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss'Z'");
26+
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss'Z'");
2727
return formatter.format(utc);
2828
}
2929

@@ -33,7 +33,7 @@ public String utc(LocalDateTime dateTime) {
3333
* @return string formatted as "yyyyMMddThhmmss"
3434
*/
3535
public String local(LocalDateTime dateTime) {
36-
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss");
36+
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss");
3737
return formatter.format(dateTime);
3838
}
3939

0 commit comments

Comments
 (0)