Verified Commit 54f53c0d authored by Elias Häußler's avatar Elias Häußler 🐛

[BUGFIX] Use Date instead of NSDate

parent f26e71b0
......@@ -161,7 +161,7 @@ class Currency: NSObject, QuantityProtocol {
// Save base and settings
let settings = CurrencySettings(context: context)
settings.base = try? Quantities.getBase(forQuantity: Quantity.Currency).key
settings.date = date as NSDate?
settings.date = date
// Save to Core Data
(UIApplication.shared.delegate as! AppDelegate).saveContext()
......
......@@ -367,7 +367,7 @@ class MainViewController: UIViewController, UISearchBarDelegate, UITableViewDele
{
// Save conversion
let conversion = History(context: context)
conversion.date = NSDate()
conversion.date = Date()
conversion.input = input
conversion.inputUnit = base?.key
conversion.outputUnit = unit.key
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment