1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

Moved local times to DateTime.Now. Styled sync page with last sync time shown.

This commit is contained in:
Kyle Spearrin
2016-07-30 17:29:04 -04:00
parent ed1cb34cc1
commit a315f36e09
9 changed files with 55 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ namespace Bit.App.Services
}
// Has it been longer than lockSeconds since the last time the app was backgrounded?
var now = DateTime.UtcNow;
var now = DateTime.Now;
var lastBackground = _settings.GetValueOrDefault(Constants.SettingLastBackgroundedDate, now.AddYears(-1));
if((now - lastBackground).TotalSeconds < lockSeconds)
{