File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ protected function migrateSystem()
124124
125125 Configurator::file ($ configFile = 'statamic/system.php ' )
126126 ->set ('multisite ' , count ($ sites ) > 1 )
127+ ->set ('display_timezone ' , $ system ['timezone ' ] ?? null )
127128 ->ifNoChanges ($ this ->throwNoChangesException ($ configFile ));
128129
129130 return $ this ;
Original file line number Diff line number Diff line change @@ -155,6 +155,11 @@ public function it_migrates_routes()
155155 /** @test */
156156 public function it_migrates_system_settings ()
157157 {
158+ $ this ->files ->put ($ this ->sitePath ('settings/system.yaml ' ), <<<'EOT'
159+ timezone: 'America/New_York'
160+ EOT
161+ );
162+
158163 $ this ->artisan ('statamic:migrate:settings ' , ['handle ' => 'system ' ]);
159164
160165 $ this ->assertSameWithNormalizedLineEndings (File::get (resource_path ('sites.yaml ' )),
@@ -166,6 +171,11 @@ public function it_migrates_system_settings()
166171
167172 $ this ->assertConfigFileContains ('system.php ' , <<<'EOT'
168173 'multisite' => false,
174+ EOT
175+ );
176+
177+ $ this ->assertConfigFileContains ('system.php ' , <<<'EOT'
178+ 'display_timezone' => 'America/New_York',
169179EOT
170180 );
171181 }
You can’t perform that action at this time.
0 commit comments