We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 106f14b commit 3283e91Copy full SHA for 3283e91
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/Utils.java
@@ -6,7 +6,6 @@
6
import java.lang.reflect.InvocationTargetException;
7
import java.lang.reflect.ParameterizedType;
8
import java.lang.reflect.Type;
9
-import java.text.SimpleDateFormat;
10
import java.time.Instant;
11
import java.util.Arrays;
12
import java.util.Date;
@@ -57,9 +56,7 @@ public static Version loadFromProperties() {
57
56
try {
58
String time = properties.getProperty("git.build.time");
59
if (time != null) {
60
- builtTime =
61
- // RFC 822 date is the default format used by git-commit-id-plugin
62
- new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").parse(time);
+ builtTime = Date.from(Instant.parse(time));
63
} else {
64
builtTime = Date.from(Instant.EPOCH);
65
}
0 commit comments