BREAKING CHANGE!: change default timezones to Istanbul (+3:00)

This commit is contained in:
Aliberk Sandıkçı 2024-01-01 19:58:56 +03:00
parent d7ff69480a
commit c8e8fb64f1
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
6 changed files with 10 additions and 10 deletions

View file

@ -67,7 +67,7 @@ class Installation extends EA_Controller
$this->instance->migrate();
// Insert admin
$admin['timezone'] = 'UTC';
$admin['timezone'] = 'Istanbul (+3:00)'; // REVIEW is it working properly ?!
$admin['settings']['username'] = $admin['username'];
$admin['settings']['password'] = $admin['password'];
$admin['settings']['notifications'] = true;

View file

@ -28,15 +28,15 @@ class Timezones
/**
* @var string
*/
protected string $default = 'UTC';
protected string $default = 'Istanbul (+3:00)'; // REVIEW is it working??
/**
* @var array
*/
protected array $timezones = [
'UTC' => [
'UTC' => 'UTC',
// 'Türkiye' => 'Istanbul (+3:00)', // TODO add this line in proper way
'General' => [
'General/UTC' => 'UTC',
'General/Istanbul' => 'Istanbul (+3:00)', // REVIEW is this line proper and working correctly???
],
'America' => [
'America/Adak' => 'Adak (-10:00)',
@ -531,7 +531,7 @@ class Timezones
*/
public function get_default_timezone(): string
{
return 'UTC'; // TODO change this to +3 in proper way
return 'Istanbul (+3:00)'; // REVIEW is it working in proper way?
}
/**

View file

@ -23,7 +23,7 @@ class Migration_Add_timezone_to_users extends EA_Migration
'timezone' => [
'type' => 'VARCHAR',
'constraint' => '256',
'default' => 'UTC',
'default' => 'Istanbul (+3:00)', // REVIEW Works under migration ?
'after' => 'notes',
],
];

View file

@ -172,7 +172,7 @@
<small>
<?= lang('current_user') ?>:
<span>
<?= $timezones[session('timezone', 'UTC')] ?>
<?= $timezones[session('timezone', 'Istanbul (+3:00)')] ?>
</span>
</small>
</div>

View file

@ -23,7 +23,7 @@
<?= lang('timezone') ?>
</label>
<?php component('timezone_dropdown', [
'attributes' => 'id="select-timezone" class="form-control" value="UTC"',
'attributes' => 'id="select-timezone" class="form-control" value="Istanbul (+3:00)"',
'grouped_timezones' => $grouped_timezones,
]); ?>
</div>

View file

@ -63,7 +63,7 @@
<small>
<?= lang('current_user') ?>:
<span>
<?= $timezones[session('timezone', 'UTC')] ?>
<?= $timezones[session('timezone', 'Istanbul (+3:00)')] ?>
</span>
</small>
</div>