From c1573809d9583540107a4a04013158c2fd0aeebd Mon Sep 17 00:00:00 2001
From: Etopian Inc <etopian@users.noreply.github.com>
Date: Fri, 6 Jan 2023 00:41:08 +0500
Subject: [PATCH] Fix time formatting in Arabic and Iraqi Arabic locales
 (#4055)

* Fix locale time formatting in Arabic.

The time formatting in Arabic is broken and it causes a 500 error on the room page if a user switches to Arabic.

* Time formatting in Iraqi Arabic is broken

Time formatting in Iraqi Arabic is broken, it causes a 500 error on the room page if a user tries to switch their language to it..

Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
---
 config/locales/ar.yml    | 2 +-
 config/locales/ar_IQ.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/locales/ar.yml b/config/locales/ar.yml
index 8258fb76..649bbc0b 100644
--- a/config/locales/ar.yml
+++ b/config/locales/ar.yml
@@ -669,7 +669,7 @@ ar:
     يستخدم هذا النشر خادم اختبار تمت تهيئته مسبقًا ، ويجب استبداله بخادمك الشخصي. لمزيد من التفاصيل ، اطلع على%{href} .
   time:
     formats:
-      default: "b %d, %Y %-I:%M%P%"
+      default: "%b %d, %Y %-I:%M%P"
   update: تحديث
   verify:
     accept: تحقق
diff --git a/config/locales/ar_IQ.yml b/config/locales/ar_IQ.yml
index 0ae97b30..7406f2e3 100644
--- a/config/locales/ar_IQ.yml
+++ b/config/locales/ar_IQ.yml
@@ -669,7 +669,7 @@ ar_IQ:
     يستخدم هذا النشر خادم اختبار تمت تهيئته مسبقًا ، ويجب استبداله بخادمك الشخصي. لمزيد من التفاصيل ، اطلع على%{href} .
   time:
     formats:
-      default: "b %d, %Y %-I:%M%P%"
+      default: "%b %d, %Y %-I:%M%P"
   update: تحديث
   verify:
     accept: تحقق
-- 
GitLab