diff --git a/src/IIIFPresentation/API/Features/Storage/Requests/CreateCollection.cs b/src/IIIFPresentation/API/Features/Storage/Requests/CreateCollection.cs index fc18aca..230d16b 100644 --- a/src/IIIFPresentation/API/Features/Storage/Requests/CreateCollection.cs +++ b/src/IIIFPresentation/API/Features/Storage/Requests/CreateCollection.cs @@ -35,11 +35,12 @@ public class CreateCollectionHandler( public async Task> Handle(CreateCollection request, CancellationToken cancellationToken) { + var dateCreated = DateTime.UtcNow; var collection = new Collection() { Id = Guid.NewGuid().ToString(), - Created = DateTime.UtcNow, - Modified = DateTime.UtcNow, + Created = dateCreated, + Modified = dateCreated, CreatedBy = Authorizer.GetUser(), CustomerId = request.CustomerId, IsPublic = request.Collection.Behavior.IsPublic(),