-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
Which Umbraco version are you using?
v13.12.1
Bug summary
When a user has IsLockedOut = true, and lastLockoutDate = null, the code is returning DateTime.MaxValue as a DateTimeOffset. This seems to be adjusting a local DateTime to a UTC date time, and it is exceeding the max value.
if (lockedOutUntil.HasValue is false)
{
return DateTime.MaxValue;
}
ought to be returning DateTimeOffset.MaxValue
Specifics
No response
Steps to reproduce
A member needs to have IsLockedOut = true, and lastLockoutDate = null, and the local timezone needs to be a UTC -* timezone. (America/Detroit in this case)
Expected result / actual result
No response