Check date string format before replacing it.

This commit is contained in:
Damiano Galassi committed 2018-06-01 17:43:49 +02:00
1 parent 5768a21d74
commit 9fbb6f5ab4
1 file changed
+5
@@ -486,6 +486,11 @@ static NSDateFormatter *_formatter;
if ([sender.stringValue isEqualToString:item.stringValue]) { return; }
if (item.dataType == MP42MetadataItemDataTypeDate &&
[sender.stringValue isEqualToString:[_formatter stringFromDate:item.dateValue]]) {
return;
}
id value;
switch (item.dataType) {
case MP42MetadataItemDataTypeString: