mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
Fixed issue with expiration date popup showing today instead of set date (fixes #845)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user