diff --git a/contribute/docs/index.html b/contribute/docs/index.html index 3e3c6ab931..8395e0ed63 100644 --- a/contribute/docs/index.html +++ b/contribute/docs/index.html @@ -806,7 +806,10 @@
$now = Carbon::now();
-echo $now; // 2024-10-10 07:08:15
+echo $now; // 2024-10-10 18:20:43
echo "\n";
$today = Carbon::today();
echo $today; // 2024-10-10 00:00:00
@@ -451,7 +451,7 @@ Instantiation
// 19:15 in Johannesburg
echo 'Meeting starts at '.$meeting->format('H:i').' in Johannesburg.'; // Meeting starts at 19:15 in Johannesburg.
// now in Johannesburg
-echo "It's ".$meeting->nowWithSameTz()->format('H:i').' right now in Johannesburg.'; // It's 09:08 right now in Johannesburg.
+echo "It's ".$meeting->nowWithSameTz()->format('H:i').' right now in Johannesburg.'; // It's 20:20 right now in Johannesburg.
@@ -705,7 +705,7 @@
$date = CarbonImmutable::now();
-echo $date->calendar(); // Today at 7:08 AM
+echo $date->calendar(); // Today at 6:20 PM
echo "\n";
-echo $date->sub('1 day 3 hours')->calendar(); // Yesterday at 4:08 AM
+echo $date->sub('1 day 3 hours')->calendar(); // Yesterday at 3:20 PM
echo "\n";
-echo $date->sub('3 days 10 hours 23 minutes')->calendar(); // Last Sunday at 8:45 PM
+echo $date->sub('3 days 10 hours 23 minutes')->calendar(); // Last Monday at 7:57 AM
echo "\n";
echo $date->sub('8 days')->calendar(); // 10/02/2024
echo "\n";
-echo $date->add('1 day 3 hours')->calendar(); // Tomorrow at 10:08 AM
+echo $date->add('1 day 3 hours')->calendar(); // Tomorrow at 9:20 PM
echo "\n";
-echo $date->add('3 days 10 hours 23 minutes')->calendar(); // Sunday at 5:31 PM
+echo $date->add('3 days 10 hours 23 minutes')->calendar(); // Monday at 4:43 AM
echo "\n";
echo $date->add('8 days')->calendar(); // 10/18/2024
echo "\n";
-echo $date->locale('fr')->calendar(); // Aujourd’hui à 07:08
+echo $date->locale('fr')->calendar(); // Aujourd’hui à 18:20
@@ -5588,7 +5588,7 @@ -
echo Carbon::now('America/Vancouver')->diffInSeconds(Carbon::now('Europe/London')); // 5.0E-6
+ echo Carbon::now('America/Vancouver')->diffInSeconds(Carbon::now('Europe/London')); // 1.1E-5
$dtOttawa = Carbon::createMidnightDate(2000, 1, 1, 'America/Toronto');
$dtVancouver = Carbon::createMidnightDate(2000, 1, 1, 'America/Vancouver');
@@ -7048,10 +7048,10 @@ Difference
$date = Carbon::now()->addSeconds(3666);
-echo $date->diffInSeconds(); // -3665.999954
-echo $date->diffInMinutes(); // -61.099998533333
-echo $date->diffInHours(); // -1.0183332986111
-echo $date->diffInDays(); // -0.042430553668981
+echo $date->diffInSeconds(); // -3665.999871
+echo $date->diffInMinutes(); // -61.099996166667
+echo $date->diffInHours(); // -1.0183332411111
+echo $date->diffInDays(); // -0.042430550706019
$date = Carbon::create(2016, 1, 5, 22, 40, 32);
@@ -7706,7 +7706,7 @@ Macro
echo "\n";
echo Carbon::tomorrow()->formatForUser(); // Demain à 02:00
echo "\n";
-echo Carbon::now()->subDays(3)->formatForUser(); // lundi dernier à 09:08
+echo Carbon::now()->subDays(3)->formatForUser(); // lundi dernier à 20:20
@@ -10274,7 +10274,10 @@ Migrate to Carbon 2
backer: 5,
})[member.status] || 3;
- if (['onlinekasyno-polis.pl'].indexOf((new URL(href)).host) === -1) {
+ if ([
+ 'onlinekasyno-polis.pl',
+ 'zonaminecraft.net',
+ ].indexOf((new URL(href)).host) === -1) {
href += (href.indexOf('?') === -1 ? '?' : '&') + 'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon';
}
diff --git a/history/index.html b/history/index.html
index cea3a63a8d..1a544e443e 100644
--- a/history/index.html
+++ b/history/index.html
@@ -724,7 +724,10 @@
backer: 5,
})[member.status] || 3;
- if (['onlinekasyno-polis.pl'].indexOf((new URL(href)).host) === -1) {
+ if ([
+ 'onlinekasyno-polis.pl',
+ 'zonaminecraft.net',
+ ].indexOf((new URL(href)).host) === -1) {
href += (href.indexOf('?') === -1 ? '?' : '&') + 'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon';
}
diff --git a/index.html b/index.html
index 0140d2ca31..07b8a6c008 100644
--- a/index.html
+++ b/index.html
@@ -265,7 +265,7 @@ Backers
" href="https://tomba.io/?utm_source=opencollective&utm_medium=github&utm_campaign=Carbon" target="_blank">
-
+
@@ -975,7 +975,10 @@ Why the name Carbon?
backer: 5,
})[member.status] || 3;
- if (['onlinekasyno-polis.pl'].indexOf((new URL(href)).host) === -1) {
+ if ([
+ 'onlinekasyno-polis.pl',
+ 'zonaminecraft.net',
+ ].indexOf((new URL(href)).host) === -1) {
href += (href.indexOf('?') === -1 ? '?' : '&') + 'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon';
}
diff --git a/laravel/index.html b/laravel/index.html
index 8d8bd2e4b9..1c79a023a2 100644
--- a/laravel/index.html
+++ b/laravel/index.html
@@ -914,7 +914,10 @@ UTC is the reference
backer: 5,
})[member.status] || 3;
- if (['onlinekasyno-polis.pl'].indexOf((new URL(href)).host) === -1) {
+ if ([
+ 'onlinekasyno-polis.pl',
+ 'zonaminecraft.net',
+ ].indexOf((new URL(href)).host) === -1) {
href += (href.indexOf('?') === -1 ? '?' : '&') + 'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon';
}
diff --git a/symfony/index.html b/symfony/index.html
index d389d7c87f..33f2f3acd8 100644
--- a/symfony/index.html
+++ b/symfony/index.html
@@ -915,7 +915,10 @@ UTC is the reference
backer: 5,
})[member.status] || 3;
- if (['onlinekasyno-polis.pl'].indexOf((new URL(href)).host) === -1) {
+ if ([
+ 'onlinekasyno-polis.pl',
+ 'zonaminecraft.net',
+ ].indexOf((new URL(href)).host) === -1) {
href += (href.indexOf('?') === -1 ? '?' : '&') + 'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon';
}
diff --git a/template.src.html b/template.src.html
index d15f8761c9..92c9d992cd 100644
--- a/template.src.html
+++ b/template.src.html
@@ -723,7 +723,10 @@
backer: 5,
})[member.status] || 3;
- if (['onlinekasyno-polis.pl'].indexOf((new URL(href)).host) === -1) {
+ if ([
+ 'onlinekasyno-polis.pl',
+ 'zonaminecraft.net',
+ ].indexOf((new URL(href)).host) === -1) {
href += (href.indexOf('?') === -1 ? '?' : '&') + 'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon';
}
diff --git a/tools/generate.php b/tools/generate.php
index 75544e52a8..3867de9fe3 100644
--- a/tools/generate.php
+++ b/tools/generate.php
@@ -378,7 +378,7 @@ function getOpenCollective(string $status): string
};
$width = $validImage ? round($x * $height / $y) : $height;
- if (!str_contains($href, 'utm_source') && !preg_match('/^https?:\/\/onlinekasyno-polis\.pl(\/.*)?$/', $href)) {
+ if (!str_contains($href, 'utm_source') && !preg_match('/^https?:\/\/(?:onlinekasyno-polis\.pl|zonaminecraft\.net)(\/.*)?$/', $href)) {
$href .= (!str_contains($href, '?') ? '?' : '&').'utm_source=opencollective&utm_medium=github&utm_campaign=Carbon';
}