X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FTemporal.php;h=d2599179faccafdfa9294b2c801e133892d068f9;hb=3bca4fe2a64671d09e08346456cdfa6c12f996e9;hp=acafb66ab60538949a9b0cacd2540b19b2bc7382;hpb=360614d2cf3aceeb763ef1281ad5236878f5d735;p=friendica.git diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index acafb66ab6..d2599179fa 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -1,6 +1,6 @@ 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,