From 623f90e43f376486af4cefda0728f153c9d63b81 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Mon, 4 May 2026 20:29:11 +0200 Subject: [PATCH] fix: remove timezone-broken future-date check from Review::new --- crates/domain/src/models/mod.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/domain/src/models/mod.rs b/crates/domain/src/models/mod.rs index 2be5adf..0f62ddd 100644 --- a/crates/domain/src/models/mod.rs +++ b/crates/domain/src/models/mod.rs @@ -133,14 +133,6 @@ impl Review { comment: Option, watched_at: NaiveDateTime, ) -> Result { - let now = Utc::now().naive_utc(); - - if watched_at > now { - return Err(DomainError::ValidationError( - "watched_at cannot be in the future".into(), - )); - } - Ok(Self { id: ReviewId::generate(), movie_id, @@ -148,7 +140,7 @@ impl Review { rating, comment, watched_at, - created_at: now, + created_at: Utc::now().naive_utc(), }) }