Use DateTime.Now for background date

This commit is contained in:
Kyle Spearrin 2016-08-01 23:57:09 -04:00
parent be9750770a
commit 775fb69a82
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,7 @@ namespace Bit.iOS.Extension
return; return;
} }
Resolver.Resolve<ISettings>().AddOrUpdateValue(App.Constants.SettingLastBackgroundedDate, DateTime.UtcNow); Resolver.Resolve<ISettings>().AddOrUpdateValue(App.Constants.SettingLastBackgroundedDate, DateTime.Now);
var item = _tableItems.ElementAt(indexPath.Row); var item = _tableItems.ElementAt(indexPath.Row);
if(item == null) if(item == null)

View file

@ -138,7 +138,7 @@ namespace Bit.iOS
// Log the date/time we last backgrounded // Log the date/time we last backgrounded
Settings.AddOrUpdateValue(Bit.App.Constants.SettingLastBackgroundedDate, DateTime.UtcNow); Settings.AddOrUpdateValue(Bit.App.Constants.SettingLastBackgroundedDate, DateTime.Now);
base.DidEnterBackground(uiApplication); base.DidEnterBackground(uiApplication);
Debug.WriteLine("DidEnterBackground"); Debug.WriteLine("DidEnterBackground");