Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit e27dd75

Browse files
committed
Use timezone_identifiers_list native PHP function instead of manually updated timezone list
1 parent 228afe4 commit e27dd75

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

resources/data/timezones.json

-1
This file was deleted.

src/Support/helpers.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,12 @@ function mimetypes()
7474
if (! function_exists('timezones')) {
7575
/**
7676
* Get valid timezones.
77-
* This list is based upon the timezone database version 2017.2.
78-
*
79-
* @see http://php.net/manual/en/timezones.php
8077
*
8178
* @return array
8279
*/
8380
function timezones()
8481
{
85-
return json_decode(file_get_contents(__DIR__.'/../../resources/data/timezones.json'), true);
82+
return array_combine(timezone_identifiers_list(), timezone_identifiers_list());
8683
}
8784
}
8885

0 commit comments

Comments
 (0)