Skip to content

Commit a0c2dae

Browse files
committed
Add Åland Islands country; Europe/Mariehamn timezone
1 parent b92fa8e commit a0c2dae

File tree

10 files changed

+33
-16
lines changed

10 files changed

+33
-16
lines changed

data/europe.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
AL;ALB;.al
33
AD;AND;.ad
44
AT;AUT;.at
5+
AX;ALA;.ax
56
BY;BLR;.by
67
BE;BEL;.be
78
BA;BIH;.ba

src/Constants/CountryAfrica.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAfrica (auto-generated with bin/build-countries from "data/africa.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountryAfrica
2424
{

src/Constants/CountryAll.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAll (auto-generated with bin/build-countries from "data/africa.csv, data/antarctica.csv, data/asia.csv, data/australia.csv, data/europe.csv, data/north-america.csv, data/south-america.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountryAll
2424
{
@@ -172,6 +172,7 @@ class CountryAll
172172
CountryEurope::COUNTRY_CODE_AL => CountryEurope::COUNTRY_NAME_AL,
173173
CountryEurope::COUNTRY_CODE_AD => CountryEurope::COUNTRY_NAME_AD,
174174
CountryEurope::COUNTRY_CODE_AT => CountryEurope::COUNTRY_NAME_AT,
175+
CountryEurope::COUNTRY_CODE_AX => CountryEurope::COUNTRY_NAME_AX,
175176
CountryEurope::COUNTRY_CODE_BY => CountryEurope::COUNTRY_NAME_BY,
176177
CountryEurope::COUNTRY_CODE_BE => CountryEurope::COUNTRY_NAME_BE,
177178
CountryEurope::COUNTRY_CODE_BA => CountryEurope::COUNTRY_NAME_BA,

src/Constants/CountryAntarctica.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAntarctica (auto-generated with bin/build-countries from "data/antarctica.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountryAntarctica
2424
{

src/Constants/CountryAsia.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAsia (auto-generated with bin/build-countries from "data/asia.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountryAsia
2424
{

src/Constants/CountryAustralia.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAustralia (auto-generated with bin/build-countries from "data/australia.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountryAustralia
2424
{

src/Constants/CountryEurope.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
* Class CountryEurope (auto-generated with bin/build-countries from "data/europe.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountryEurope
2424
{
2525
/* Country codes */
2626
public const COUNTRY_CODE_AL = 'AL';
2727
public const COUNTRY_CODE_AD = 'AD';
2828
public const COUNTRY_CODE_AT = 'AT';
29+
public const COUNTRY_CODE_AX = 'AX';
2930
public const COUNTRY_CODE_BY = 'BY';
3031
public const COUNTRY_CODE_BE = 'BE';
3132
public const COUNTRY_CODE_BA = 'BA';
@@ -106,6 +107,17 @@ class CountryEurope
106107
Locale::PL_PL => 'Austria',
107108
Locale::SE_SE => 'Österrike',
108109
];
110+
public const COUNTRY_NAME_AX = [
111+
Locale::CS_CZ => 'Alandy',
112+
Locale::DE_DE => 'Åland',
113+
Locale::EN_GB => 'Åland Islands',
114+
Locale::ES_ES => 'Åland',
115+
Locale::FR_FR => 'Åland',
116+
Locale::HR_HR => 'Ålandski otoci',
117+
Locale::IT_IT => 'Åland',
118+
Locale::PL_PL => 'Wyspy Alandzkie',
119+
Locale::SE_SE => 'Åland',
120+
];
109121
public const COUNTRY_NAME_BY = [
110122
Locale::CS_CZ => 'Bělorusko',
111123
Locale::DE_DE => 'Belarus',
@@ -607,6 +619,7 @@ class CountryEurope
607619
self::COUNTRY_CODE_AL => ['name' => self::COUNTRY_NAME_AL, 'iso2' => 'AL', 'iso3' => 'ALB', 'tld' => 'al', ],
608620
self::COUNTRY_CODE_AD => ['name' => self::COUNTRY_NAME_AD, 'iso2' => 'AD', 'iso3' => 'AND', 'tld' => 'ad', ],
609621
self::COUNTRY_CODE_AT => ['name' => self::COUNTRY_NAME_AT, 'iso2' => 'AT', 'iso3' => 'AUT', 'tld' => 'at', ],
622+
self::COUNTRY_CODE_AX => ['name' => self::COUNTRY_NAME_AX, 'iso2' => 'AX', 'iso3' => 'ALA', 'tld' => 'ax', ],
610623
self::COUNTRY_CODE_BY => ['name' => self::COUNTRY_NAME_BY, 'iso2' => 'BY', 'iso3' => 'BLR', 'tld' => 'by', ],
611624
self::COUNTRY_CODE_BE => ['name' => self::COUNTRY_NAME_BE, 'iso2' => 'BE', 'iso3' => 'BEL', 'tld' => 'be', ],
612625
self::COUNTRY_CODE_BA => ['name' => self::COUNTRY_NAME_BA, 'iso2' => 'BA', 'iso3' => 'BIH', 'tld' => 'ba', ],

src/Constants/CountryNorthAmerica.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryNorthAmerica (auto-generated with bin/build-countries from "data/north-america.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountryNorthAmerica
2424
{

src/Constants/CountrySouthAmerica.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountrySouthAmerica (auto-generated with bin/build-countries from "data/south-america.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-07-30 11:20:50)
21-
* @since 0.1.0 (2023-07-30 11:20:50) Generated version.
20+
* @version 0.1.0 (2023-08-01 11:27:24)
21+
* @since 0.1.0 (2023-08-01 11:27:24) Generated version.
2222
*/
2323
class CountrySouthAmerica
2424
{

tests/Unit/TimezoneTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ public function dataProvider(): array
151151
[++$number, 'getCountryName', null, 'Europe/Luxembourg', CountryEurope::COUNTRY_NAME_LU[Locale::EN_GB]],
152152
[++$number, 'getCountryCode', null, 'Europe/Madrid', CountryEurope::COUNTRY_CODE_ES],
153153
[++$number, 'getCountryName', null, 'Europe/Madrid', CountryEurope::COUNTRY_NAME_ES[Locale::EN_GB]],
154+
[++$number, 'getCountryCode', null, 'Europe/Mariehamn', CountryEurope::COUNTRY_CODE_AX],
155+
[++$number, 'getCountryName', null, 'Europe/Mariehamn', CountryEurope::COUNTRY_NAME_AX[Locale::EN_GB]],
154156
[++$number, 'getCountryCode', null, 'Europe/Monaco', CountryEurope::COUNTRY_CODE_MC],
155157
[++$number, 'getCountryName', null, 'Europe/Monaco', CountryEurope::COUNTRY_NAME_MC[Locale::EN_GB]],
156158
[++$number, 'getCountryCode', null, 'Europe/Moscow', CountryEurope::COUNTRY_CODE_RU],

0 commit comments

Comments
 (0)