Skip to content

Introduce TimeProvider for testable timestamps #1608

Open

Description

@BenjaminMichaelis

Services use DateTime.UtcNow directly (e.g. profile UpdatedAtUtc), and the codebase has no TimeProvider usage. Inject TimeProvider and use consistent DateTimeOffset/datetime2.

Found during review of #1267; intentionally kept out of that PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions