PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / sabre / vobject / bin / fetch_windows_zones.php
ameliabooking / vendor / sabre / vobject / bin Last commit date
bench.php 7 months ago bench_freebusygenerator.php 7 months ago bench_manipulatevcard.php 7 months ago fetch_windows_zones.php 1 year ago generate_vcards 1 year ago generateicalendardata.php 7 months ago mergeduplicates.php 7 months ago rrulebench.php 7 months ago vobject 1 year ago
fetch_windows_zones.php
49 lines
1 #!/usr/bin/env php
2 <?php
3
4 $windowsZonesUrl = 'https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml';
5 $outputFile = __DIR__.'/../lib/timezonedata/windowszones.php';
6
7 echo 'Fetching timezone map from: '.$windowsZonesUrl, "\n";
8
9 $data = file_get_contents($windowsZonesUrl);
10 $xml = simplexml_load_string($data);
11
12 $map = [];
13
14 foreach ($xml->xpath('//mapZone') as $mapZone) {
15 $from = (string) $mapZone['other'];
16 $to = (string) $mapZone['type'];
17
18 list($to) = explode(' ', $to, 2);
19
20 if (!isset($map[$from])) {
21 $map[$from] = $to;
22 }
23 }
24
25 ksort($map);
26 echo "Writing to: $outputFile\n";
27
28 $f = fopen($outputFile, 'w');
29 fwrite($f, "<?php\n\n");
30 fwrite($f, "/**\n");
31 fwrite($f, " * Automatically generated timezone file\n");
32 fwrite($f, " *\n");
33 fwrite($f, ' * Last update: '.date(DATE_W3C)."\n");
34 fwrite($f, ' * Source: '.$windowsZonesUrl."\n");
35 fwrite($f, " *\n");
36 fwrite($f, " * @copyright Copyright (C) fruux GmbH (https://fruux.com/).\n");
37 fwrite($f, " * @license http://sabre.io/license/ Modified BSD License\n");
38 fwrite($f, " */\n");
39 fwrite($f, "\n");
40 fwrite($f, 'return ');
41 fwrite($f, var_export($map, true).';');
42 fclose($f);
43
44 echo "Formatting\n";
45
46 exec(__DIR__.'/../vendor/bin/php-cs-fixer fix '.escapeshellarg($outputFile));
47
48 echo "Done\n";
49