Skip to content

Commit

Permalink
Fix #30 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Mar 7, 2022
1 parent 9a4a701 commit 546f236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dev.katsute</groupId>
<artifactId>onemta</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>

<profiles>
<profile>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/dev/katsute/onemta/MTASchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public final String toString(){
static TransitAlertPeriod asTransitAlertTimeframe(final TimeRange timeRange){
return new TransitAlertPeriod() {

private final Long start = requireNonNull(timeRange::getStart);
private final Long end = requireNonNull(timeRange::getEnd);
private final Long start = requireNonNull(() -> timeRange.getStart() * 1000);
private final Long end = requireNonNull(() -> timeRange.getEnd() != 0 ? timeRange.getEnd() * 1000 : null);

@Override
public final Date getStart(){
Expand Down

0 comments on commit 546f236

Please sign in to comment.