Skip to content

GetLockoutEnd #21155

@LvledPanic

Description

@LvledPanic

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions