]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Temporal.php
Changes:
[friendica.git] / src / Util / Temporal.php
index acafb66ab60538949a9b0cacd2540b19b2bc7382..d2599179faccafdfa9294b2c801e133892d068f9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -242,7 +242,7 @@ class Temporal
                // First day of the week (0 = Sunday)
                $firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'first_day_of_week', 0);
 
-               $lang = substr(DI::l10n()->getCurrentLang(), 0, 2);
+               $lang = DI::l10n()->toISO6391(DI::l10n()->getCurrentLang());
 
                // Check if the detected language is supported by the picker
                if (!in_array($lang,