File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 6
6
import java .lang .reflect .InvocationTargetException ;
7
7
import java .lang .reflect .ParameterizedType ;
8
8
import java .lang .reflect .Type ;
9
- import java .text .SimpleDateFormat ;
10
9
import java .time .Instant ;
11
10
import java .util .Arrays ;
12
11
import java .util .Date ;
@@ -57,9 +56,7 @@ public static Version loadFromProperties() {
57
56
try {
58
57
String time = properties .getProperty ("git.build.time" );
59
58
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 );
59
+ builtTime = Date .from (Instant .parse (time ));
63
60
} else {
64
61
builtTime = Date .from (Instant .EPOCH );
65
62
}
You can’t perform that action at this time.
0 commit comments