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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user