From 2e87f0faf312861d8daa27069b33079847d9e37e Mon Sep 17 00:00:00 2001
From: kylekatarnls
/*pad()*/
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/contribute/index.html b/contribute/index.html
index 0d5c2f66c3..69b6a1feb5 100644
--- a/contribute/index.html
+++ b/contribute/index.html
@@ -728,7 +728,10 @@ Contribute to this documentation
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/contribute/translate/index.html b/contribute/translate/index.html
index efbca3fd42..b81a36a27b 100644
--- a/contribute/translate/index.html
+++ b/contribute/translate/index.html
@@ -728,7 +728,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/contribute/translators/index.html b/contribute/translators/index.html
index 945770949f..39b16f5ff9 100644
--- a/contribute/translators/index.html
+++ b/contribute/translators/index.html
@@ -1708,7 +1708,10 @@ Thanks to people helping us to translate Carbon in so many languages
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/docs/index.html b/docs/index.html
index 59effb3c68..59574bf941 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -133,13 +133,13 @@ Introduction
$modifiedImmutable = CarbonImmutable::now()->add(1, 'day');
var_dump($modifiedMutable === $mutable); // bool(true)
-var_dump($mutable->isoFormat('dddd D')); // string(11) "Thursday 10"
-var_dump($modifiedMutable->isoFormat('dddd D')); // string(11) "Thursday 10"
+var_dump($mutable->isoFormat('dddd D')); // string(9) "Friday 11"
+var_dump($modifiedMutable->isoFormat('dddd D')); // string(9) "Friday 11"
// So it means $mutable and $modifiedMutable are the same object
// both set to now + 1 day.
var_dump($modifiedImmutable === $immutable); // bool(false)
-var_dump($immutable->isoFormat('dddd D')); // string(11) "Wednesday 9"
-var_dump($modifiedImmutable->isoFormat('dddd D')); // string(11) "Thursday 10"
+var_dump($immutable->isoFormat('dddd D')); // string(11) "Thursday 10"
+var_dump($modifiedImmutable->isoFormat('dddd D')); // string(9) "Friday 11"
// While $immutable is still set to now and cannot be changed and
// $modifiedImmutable is a new instance created from $immutable
// set to now + 1 day.
@@ -281,16 +281,16 @@ Instantiation
$now = Carbon::now();
-echo $now; // 2024-10-09 22:29:15
+echo $now; // 2024-10-10 18:20:43
echo "\n";
$today = Carbon::today();
-echo $today; // 2024-10-09 00:00:00
+echo $today; // 2024-10-10 00:00:00
echo "\n";
$tomorrow = Carbon::tomorrow('Europe/London');
-echo $tomorrow; // 2024-10-10 00:00:00
+echo $tomorrow; // 2024-10-11 00:00:00
echo "\n";
$yesterday = Carbon::yesterday();
-echo $yesterday; // 2024-10-08 00:00:00
+echo $yesterday; // 2024-10-09 00:00:00
$date = CarbonImmutable::now();
-echo $date->calendar(); // Today at 10:29 PM
+echo $date->calendar(); // Today at 6:20 PM
echo "\n";
-echo $date->sub('1 day 3 hours')->calendar(); // Yesterday at 7:29 PM
+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 12:06 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/01/2024
+echo $date->sub('8 days')->calendar(); // 10/02/2024
echo "\n";
-echo $date->add('1 day 3 hours')->calendar(); // Friday at 1:29 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 8:52 AM
+echo $date->add('3 days 10 hours 23 minutes')->calendar(); // Monday at 4:43 AM
echo "\n";
-echo $date->add('8 days')->calendar(); // 10/17/2024
+echo $date->add('8 days')->calendar(); // 10/18/2024
echo "\n";
-echo $date->locale('fr')->calendar(); // Aujourd’hui à 22:29
+echo $date->locale('fr')->calendar(); // Aujourd’hui à 18:20
@@ -5588,7 +5588,7 @@ -
echo Carbon::now('America/Vancouver')->diffInSeconds(Carbon::now('Europe/London')); // 9.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.99991
-echo $date->diffInMinutes(); // -61.0999969
-echo $date->diffInHours(); // -1.0183332591667
-echo $date->diffInDays(); // -0.042430551574074
+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);
@@ -7704,9 +7704,9 @@ Macro
// Then now you can easily display any date in a page/e-mail using those user settings and the chosen format
echo Carbon::parse($dateString, 'UTC')->formatForUser(); // 23/01/2010
echo "\n";
-echo Carbon::tomorrow()->formatForUser(); // Aujourd’hui à 02:00
+echo Carbon::tomorrow()->formatForUser(); // Demain à 02:00
echo "\n";
-echo Carbon::now()->subDays(3)->formatForUser(); // lundi dernier à 00:29
+echo Carbon::now()->subDays(3)->formatForUser(); // lundi dernier à 20:20
@@ -8951,7 +8951,7 @@ CarbonPeriod
$days[] = $date->format('Y-m-d');
}
-echo implode(', ', $days); // 2024-10-09, 2024-10-10, 2024-10-11
+echo implode(', ', $days); // 2024-10-10, 2024-10-11, 2024-10-12
@@ -10274,7 +10274,10 @@