|
@@ -183,6 +183,9 @@ public class ExtractorUtils {
|
|
}
|
|
}
|
|
|
|
|
|
public static long getDaysBetween(long timestamp1, long timestamp2) {
|
|
public static long getDaysBetween(long timestamp1, long timestamp2) {
|
|
|
|
+ if (timestamp1 == 0 || timestamp2 == 0) {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
Instant instant1 = Instant.ofEpochSecond(timestamp1);
|
|
Instant instant1 = Instant.ofEpochSecond(timestamp1);
|
|
Instant instant2 = Instant.ofEpochSecond(timestamp2);
|
|
Instant instant2 = Instant.ofEpochSecond(timestamp2);
|
|
|
|
|