From 6fddf1610cdb7c5bd48e6325d8afe407d2329200 Mon Sep 17 00:00:00 2001
From: Matt Jankowski <matt@jankowski.online>
Date: Wed, 4 Dec 2024 02:43:29 -0500
Subject: [PATCH] Fix awkwardly-worded nature of scheduled too soon error
 (#33156)

---
 config/locales/en.yml                     | 2 +-
 spec/services/post_status_service_spec.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/locales/en.yml b/config/locales/en.yml
index 2971fe1f2..5253d2a65 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1677,7 +1677,7 @@ en:
   scheduled_statuses:
     over_daily_limit: You have exceeded the limit of %{limit} scheduled posts for today
     over_total_limit: You have exceeded the limit of %{limit} scheduled posts
-    too_soon: The scheduled date must be in the future
+    too_soon: date must be in the future
   self_destruct:
     lead_html: Unfortunately, <strong>%{domain}</strong> is permanently closing down. If you had an account there, you will not be able to continue using it, but you can still request a backup of your data.
     title: This server is closing down
diff --git a/spec/services/post_status_service_spec.rb b/spec/services/post_status_service_spec.rb
index 26db398d5..8836b9e0a 100644
--- a/spec/services/post_status_service_spec.rb
+++ b/spec/services/post_status_service_spec.rb
@@ -70,7 +70,7 @@ RSpec.describe PostStatusService do
           subject.call(account, text: 'Hi future!', scheduled_at: invalid_scheduled_time)
         end.to raise_error(
           ActiveRecord::RecordInvalid,
-          'Validation failed: Scheduled at The scheduled date must be in the future'
+          'Validation failed: Scheduled at date must be in the future'
         )
       end
     end