Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fix: localization on date on browsers not in english
Miguel Ribeiroc7b3fb445182
diff --git a/endpoints/subscriptions/get.php b/endpoints/subscriptions/get.phpindex 24e90ae..0980d92 100644--- a/endpoints/subscriptions/get.php+++ b/endpoints/subscriptions/get.php@@ -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) {diff --git a/includes/version.php b/includes/version.phpindex 4d571f5..8221d82 100644--- a/includes/version.php+++ b/includes/version.php@@ -1,3 +1,3 @@<?php-$version = "v2.50.0";+$version = "v2.50.1";?>\ No newline at end of filediff --git a/index.php b/index.phpindex 70ec5e0..d806892 100644--- a/index.php+++ b/index.php@@ -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;