diff --git a/modules/api/src/it/scala/vinyldns/api/domain/record/RecordSetServiceIntegrationSpec.scala b/modules/api/src/it/scala/vinyldns/api/domain/record/RecordSetServiceIntegrationSpec.scala index 38660f4c1..f5daade4e 100644 --- a/modules/api/src/it/scala/vinyldns/api/domain/record/RecordSetServiceIntegrationSpec.scala +++ b/modules/api/src/it/scala/vinyldns/api/domain/record/RecordSetServiceIntegrationSpec.scala @@ -116,7 +116,7 @@ class RecordSetServiceIntegrationSpec AAAA, 38400, RecordSetStatus.Active, - DateTime.now, + Instant.now.truncatedTo(ChronoUnit.MILLIS), None, List(AAAAData("fd69:27cc:fe91::60")) ) @@ -367,7 +367,7 @@ class RecordSetServiceIntegrationSpec A, 38400, RecordSetStatus.Active, - DateTime.now, + Instant.now.truncatedTo(ChronoUnit.MILLIS), None, List(AData("10.1.1.1")) ) @@ -386,7 +386,7 @@ class RecordSetServiceIntegrationSpec AAAA, 38400, RecordSetStatus.Active, - DateTime.now, + Instant.now.truncatedTo(ChronoUnit.MILLIS), None, List(AAAAData("fd69:27cc:fe91::60")) ) @@ -409,7 +409,7 @@ class RecordSetServiceIntegrationSpec AAAA, 38400, RecordSetStatus.Active, - DateTime.now, + Instant.now.truncatedTo(ChronoUnit.MILLIS), None, List(AAAAData("fd69:27cc:fe91::60")) ) diff --git a/modules/api/src/test/scala/vinyldns/api/domain/batch/BatchChangeConverterSpec.scala b/modules/api/src/test/scala/vinyldns/api/domain/batch/BatchChangeConverterSpec.scala index bd9b457f5..8a46c66fc 100644 --- a/modules/api/src/test/scala/vinyldns/api/domain/batch/BatchChangeConverterSpec.scala +++ b/modules/api/src/test/scala/vinyldns/api/domain/batch/BatchChangeConverterSpec.scala @@ -552,7 +552,7 @@ class BatchChangeConverterSpec extends AnyWordSpec with Matchers with CatsHelper okUser.id, okUser.userName, None, - DateTime.now, + Instant.now.truncatedTo(ChronoUnit.MILLIS), singleChangesOneDelete, approvalStatus = BatchChangeApprovalStatus.AutoApproved ) diff --git a/modules/core/src/test/scala/vinyldns/core/TestMembershipData.scala b/modules/core/src/test/scala/vinyldns/core/TestMembershipData.scala index d4fa04f8c..4789b7f3a 100644 --- a/modules/core/src/test/scala/vinyldns/core/TestMembershipData.scala +++ b/modules/core/src/test/scala/vinyldns/core/TestMembershipData.scala @@ -166,6 +166,6 @@ object TestMembershipData { GroupChangeType.Update, okUser.id, Some(okGroup), - created = DateTime.now.secondOfDay().roundFloorCopy() + created = Instant.now.truncatedTo(ChronoUnit.SECONDS) ) }