Skip to content

Commit 731a416

Browse files
authored
Merge pull request #31 from securenative/dev
Dev
2 parents 59f7367 + fe6d6f4 commit 731a416

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.securenative.java</groupId>
77
<artifactId>securenative-java</artifactId>
88
<packaging>jar</packaging>
9-
<version>0.4.8</version>
9+
<version>0.5.0</version>
1010
<url>https://github.com/securenative/securenative-java</url>
1111

1212
<name>${project.groupId}:${project.artifactId}:${project.version}</name>

src/main/java/com/securenative/utils/DateUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ public static String generateTimestamp() {
1313
}
1414

1515
public static String toTimestamp(Date date) {
16+
if (date == null) {
17+
date = new Date();
18+
}
1619
return ZonedDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC).format(ISO_8601_PATTERN);
1720
}
1821
}

0 commit comments

Comments
 (0)