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 66import java .lang .reflect .InvocationTargetException ;
77import java .lang .reflect .ParameterizedType ;
88import java .lang .reflect .Type ;
9- import java .text .SimpleDateFormat ;
109import java .time .Instant ;
1110import java .util .Arrays ;
1211import java .util .Date ;
@@ -57,9 +56,7 @@ public static Version loadFromProperties() {
5756 try {
5857 String time = properties .getProperty ("git.build.time" );
5958 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 ));
6360 } else {
6461 builtTime = Date .from (Instant .EPOCH );
6562 }
You can’t perform that action at this time.
0 commit comments