mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-12 02:25:59 +01:00
Expand date filter by last execution overwrite
This commit is contained in:
@@ -15,11 +15,11 @@ public class DateUtils {
|
||||
* Convert String to date.
|
||||
* @return parsed date, null if exception occurs
|
||||
*/
|
||||
public static Date convert(String date) {
|
||||
public static Date convert(String date, Date defaultDate) {
|
||||
try {
|
||||
return dateFormat.parse(date);
|
||||
} catch (ParseException e) {
|
||||
return null;
|
||||
return defaultDate;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user