mirror of
https://github.com/ellite/Wallos.git
synced 2025-12-23 23:18:07 -05:00
fix: localization on date on browsers not in english
This commit is contained in:
@@ -18,11 +18,13 @@ if (isset($settings['color_theme'])) {
|
||||
$colorTheme = $settings['color_theme'];
|
||||
}
|
||||
|
||||
$locale = isset($_COOKIE['user_locale']) ? $_COOKIE['user_locale'] : 'en_US';
|
||||
$formatter = new IntlDateFormatter(
|
||||
$locale,
|
||||
IntlDateFormatter::MEDIUM,
|
||||
IntlDateFormatter::NONE
|
||||
'en', // Force English locale
|
||||
IntlDateFormatter::SHORT,
|
||||
IntlDateFormatter::NONE,
|
||||
null,
|
||||
null,
|
||||
'MMM d, yyyy'
|
||||
);
|
||||
|
||||
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<?php
|
||||
$version = "v2.50.0";
|
||||
$version = "v2.50.1";
|
||||
?>
|
||||
@@ -213,6 +213,15 @@ $headerClass = count($subscriptions) > 0 ? "main-actions" : "main-actions hidden
|
||||
</header>
|
||||
<div class="subscriptions" id="subscriptions">
|
||||
<?php
|
||||
$formatter = new IntlDateFormatter(
|
||||
'en', // Force English locale
|
||||
IntlDateFormatter::SHORT,
|
||||
IntlDateFormatter::NONE,
|
||||
null,
|
||||
null,
|
||||
'MMM d, yyyy'
|
||||
);
|
||||
|
||||
foreach ($subscriptions as $subscription) {
|
||||
if ($subscription['inactive'] == 1 && isset($settings['hideDisabledSubscriptions']) && $settings['hideDisabledSubscriptions'] === 'true') {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user