feat: Render timezone listbox dynamically (#1672)

This commit is contained in:
Alexis Saettler
2018-08-14 18:17:15 +02:00
committed by GitHub
parent 861ca9add9
commit 42274fed96
5 changed files with 296 additions and 147 deletions
+4 -1
View File
@@ -9,6 +9,7 @@ use App\Models\Contact\Tag;
use Illuminate\Http\Request;
use App\Helpers\LocaleHelper;
use App\Jobs\SendNewUserAlert;
use App\Helpers\TimezoneHelper;
use App\Jobs\ExportAccountAsSQL;
use App\Jobs\AddContactFromVCard;
use App\Jobs\SendInvitationEmail;
@@ -81,7 +82,9 @@ class SettingsController extends Controller
return view('settings.index')
->withNamesOrder($namesOrder)
->withLocales(LocaleHelper::getLocaleList())
->withHours(DateHelper::getListOfHours());
->withHours(DateHelper::getListOfHours())
->withSelectedTimezone(TimezoneHelper::adjustEquivalentTimezone(DateHelper::getTimezone()))
->withTimezones(TimezoneHelper::getListOfTimezones());
}
/**