Przeglądaj źródła

Merge branch '3.x' into bump-dependencies

3.x
Andrew Wallo 2 miesięcy temu
rodzic
commit
785ed017a3

+ 5
- 3
app/Filament/Company/Clusters/Settings/Pages/Localization.php Wyświetl plik

@@ -215,13 +215,15 @@ class Localization extends Page
215 215
             'time_format',
216 216
         ];
217 217
 
218
-        if ($record->isDirty($keysToWatch)) {
218
+        $isDirty = $record->isDirty($keysToWatch);
219
+
220
+        $record->save();
221
+
222
+        if ($isDirty) {
219 223
             CompanySettingsService::invalidateSettings($record->company_id);
220 224
             $this->dispatch('localizationUpdated');
221 225
         }
222 226
 
223
-        $record->save();
224
-
225 227
         return $record;
226 228
     }
227 229
 

+ 0
- 2
app/Listeners/ConfigureCompanyDefault.php Wyświetl plik

@@ -27,8 +27,6 @@ class ConfigureCompanyDefault
27 27
 
28 28
         app()->setLocale($settings['default_language']);
29 29
         locale_set_default($settings['default_language']);
30
-        config(['app.timezone' => $settings['default_timezone']]);
31
-        date_default_timezone_set($settings['default_timezone']);
32 30
 
33 31
         Filament::getPanel('company')
34 32
             ->brandName($company->name);

Ładowanie…
Anuluj
Zapisz