Andrew Wallo 3ヶ月前
コミット
26598f43d3

+ 5
- 3
app/Filament/Company/Clusters/Settings/Pages/Localization.php ファイルの表示

@@ -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 ファイルの表示

@@ -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);

読み込み中…
キャンセル
保存