Skip to content

Commit

Permalink
Not necessary to defer today().
Browse files Browse the repository at this point in the history
  • Loading branch information
hs-lsong committed Jan 12, 2024
1 parent 6cb5485 commit a0d3b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/hubspot/jinjava/lib/fn/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public static ZonedDateTime today(String... var) {
}
}

ZonedDateTime dateTime = getDateTimeArg(null, zoneOffset);
ZonedDateTime dateTime = getDateTimeArg(System.currentTimeMillis(), zoneOffset);
return dateTime.toLocalDate().atStartOfDay(zoneOffset);
}

Expand Down

0 comments on commit a0d3b86

Please sign in to comment.