Check date string format before replacing it.
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user