Fixed issue with expiration date popup showing today instead of set date (fixes #845)

This commit is contained in:
Michael Starke
2018-11-12 19:03:49 +01:00
parent 5601baf6fb
commit 194c4bef49

View File

@@ -68,7 +68,7 @@ typedef NS_ENUM(NSUInteger, MPDatePreset) {
[presetMenu addItem:item];
}
self.datePicker.dateValue = [NSDate date];
self.datePicker.dateValue = self.representedObject ? [self.representedObject timeInfo].expirationDate : NSDate.date;
self.presetPopupButton.menu = presetMenu;
}