File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11package io .javaoperatorsdk .operator .api .config ;
22
33import java .io .IOException ;
4- import java .text .ParseException ;
54import java .text .SimpleDateFormat ;
65import java .time .Instant ;
76import java .util .Date ;
87import java .util .Properties ;
8+
99import org .slf4j .Logger ;
1010import org .slf4j .LoggerFactory ;
1111
@@ -41,7 +41,8 @@ public static Version loadFromProperties() {
4141 // RFC 822 date is the default format used by git-commit-id-plugin
4242 new SimpleDateFormat ("yyyy-MM-dd'T'HH:mm:ssZ" )
4343 .parse (properties .getProperty ("git.build.time" ));
44- } catch (ParseException e ) {
44+ } catch (Exception e ) {
45+ log .debug ("Couldn't parse git.build.time property" , e );
4546 builtTime = Date .from (Instant .EPOCH );
4647 }
4748 return new Version (
You can’t perform that action at this time.
0 commit comments