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

Convert everything back to UTC since thats now settings plugin stores them. Move sync page ToLocalTime conversion.

This commit is contained in:
Kyle Spearrin
2016-08-02 00:32:57 -04:00
parent 625be7fdd4
commit 2947809d78
8 changed files with 10 additions and 10 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.Now;
var now = DateTime.UtcNow;
var lastBackground = _settings.GetValueOrDefault(Constants.SettingLastBackgroundedDate, now.AddYears(-1));
if((now - lastBackground).TotalSeconds < lockSeconds)
{