Skip to content

Commit

Permalink
Merge pull request #1574 from guardian/jsh-ag/correct-resolution-for-…
Browse files Browse the repository at this point in the history
…datetime-when-updating-collection-name

Correct resolution for datetime when updating collection name
  • Loading branch information
jonathonherbert authored May 3, 2024
2 parents e98ed0d + 88c60fd commit 62e1720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/editions/db/CollectionsQueries.scala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ trait CollectionsQueries {
}

def updateCollectionName(collection: EditionsCollection): EditionsCollection = DB localTx { implicit session =>
val lastUpdated = LocalDateTime.now()
val lastUpdated = EditionsDB.truncateDateTime(OffsetDateTime.now())
sql"""
UPDATE collections
SET "name" = ${collection.displayName.trim()},
Expand Down

0 comments on commit 62e1720

Please sign in to comment.