We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59f7367 + fe6d6f4 commit 731a416Copy full SHA for 731a416
pom.xml
@@ -6,7 +6,7 @@
6
<groupId>com.securenative.java</groupId>
7
<artifactId>securenative-java</artifactId>
8
<packaging>jar</packaging>
9
- <version>0.4.8</version>
+ <version>0.5.0</version>
10
<url>https://github.com/securenative/securenative-java</url>
11
12
<name>${project.groupId}:${project.artifactId}:${project.version}</name>
src/main/java/com/securenative/utils/DateUtils.java
@@ -13,6 +13,9 @@ public static String generateTimestamp() {
13
}
14
15
public static String toTimestamp(Date date) {
16
+ if (date == null) {
17
+ date = new Date();
18
+ }
19
return ZonedDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC).format(ISO_8601_PATTERN);
20
21
0 commit comments