Marc Bennewitz
d6113ba8fe
fixes #13773 : DatePeriod does not take microseconds into account
2024-08-21 10:57:46 +01:00
Jorg Adam Sowa
b9fef523c1
Deprecate date_sunrise and date_sunset constants ( #12978 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_4
2024-08-04 20:07:52 +02:00
Tim Düsterhus
29f98e7485
Replace @deprecated by #[\Deprecated] for internal functions / class constants ( #14750 )
...
Co-authored-by: Gina Peter Banyard <girgias@php.net >
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com >
2024-07-10 16:47:31 +02:00
Saki Takamachi
bfc988552f
Fixed GH-14383: Fixed usec was carry up ( #14463 )
...
If round to the fractional part of a timestamp, a carry will occur in cases
such as 999 999 9. In that case, set usec to 0 and add/sub 1 to sec.
2024-06-11 19:02:43 +09:00
Derick Rethans
92d18b2bec
Fixed rounding error with new DateTime[Immutable]::createFromTimestamp method
2024-05-30 14:08:39 +01:00
Máté Kocsis
330cc5cdb2
Deprecate implicit nullable parameter types ( #12959 )
...
RFC: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
Co-authored-by: Gina Peter Banyard <girgias@php.net >
2024-03-13 21:40:26 +01:00
Marc Bennewitz
dbd976a67f
Singular DateTime::[get|set]Microsecond & no tentative return type ( #13486 )
...
* Singular DateTime::[get|set]Microsecond & no tentative return type
* Added missing getMicrosecond to DateTimeInterface
2024-03-06 09:18:22 +00:00
Marc Bennewitz
9f586f6c69
Fixed int32 underflow on DateTime::createFromTimestamp ( #12775 )
...
* Fixed int32 underflow on DateTime::createFromTimestamp
2024-02-27 14:01:49 +00:00
Marc Bennewitz
0016b3085c
Added DateTime[Immutable]::[get|set]Microseconds ( #12557 )
...
* Added DateTime[Immutable]::[get|set]Microseconds
2024-02-05 12:14:18 +00:00
Derick Rethans
cba4c409b1
Merge branch 'PHP-8.3'
2024-01-02 11:07:36 +00:00
Derick Rethans
9111a39ffa
Merge branch 'PHP-8.2' into PHP-8.3
2024-01-02 11:07:24 +00:00
Derick Rethans
c7816bf730
tzdata 2023d adds an extra transition for Europe/London
2024-01-02 11:07:12 +00:00
Máté Kocsis
adc26424aa
Deprecate calling DatePeriod::__construct() with less than 3 arguments
2023-12-04 22:27:59 +01:00
Ilija Tovilo
1ade8ef7d3
[skip ci] Skip failing date test on 32-bit
2023-11-28 00:26:30 +01:00
Ilija Tovilo
f6efd126a5
Fix date createFromTimestamp test ( #12766 )
...
Unfortuantely, PHP_INT_MIN cannot be expressed as a literal in PHP, because -NUM
is parsed as (-)(NUM). NUM is restricted to PHP_INT_MAX.
2023-11-24 14:24:32 +01:00
Marc Bennewitz
88f2dc6268
Added DateTime[Immutable]::createFromTimestamp / date_create_[immutable]_from_timestamp
2023-11-22 15:24:13 +00:00
Derick Rethans
0dfac0e33b
Fixed whitespace and formatting
2023-11-22 14:45:58 +00:00
jorgsowa
e7e5f1f2d4
Extended tests with date constants
2023-11-22 14:41:48 +00:00
Derick Rethans
1bddd4ef44
Merge branch 'PHP-8.2'
2023-08-10 12:11:35 +01:00
Derick Rethans
e157da11f3
Update initialisation check for new PHP-8.3 API
2023-08-09 20:12:41 +01:00
Derick Rethans
b71d2e16e6
Fix GH-11416: Crash with DatePeriod when uninitialised objects are passed in (PHP 8.2+)
2023-08-09 16:10:14 +01:00
Derick Rethans
f8b42da3a4
Merge branch 'PHP-8.2'
2023-08-09 15:39:31 +01:00
Derick Rethans
7f6e98cec7
Merge branch 'PHP-8.1' into PHP-8.2
2023-08-09 15:39:25 +01:00
Derick Rethans
4833b84854
Fix GH-11416: Crash with DatePeriod when uninitialised objects are passed in
2023-08-09 15:39:13 +01:00
Derick Rethans
a33dfd2cd9
Merge branch 'PHP-8.2'
2023-08-03 09:53:16 +01:00
Derick Rethans
a8f4171655
Fixed bug GH-11854 (DateTime:createFromFormat stopped parsing datetime with extra space)
2023-08-03 09:52:34 +01:00
Derick Rethans
82ff4c5e84
Make the new DatePeriod::createFromISO8601String method emit DateTimeImmutable objects
2023-07-25 18:43:45 +01:00
Máté Kocsis
9c7c0a0b93
Implement DatePeriod::createFromISO8601String()
2023-07-18 12:59:21 +02:00
Ilija Tovilo
0250468b87
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix bug-gh11600.phpt
2023-07-12 14:55:14 +02:00
Ilija Tovilo
57229836d4
Fix bug-gh11600.phpt
2023-07-12 14:54:56 +02:00
Ilija Tovilo
65ff764d24
Merge branch 'PHP-8.2'
...
* PHP-8.2:
[skip ci] Mark bug-gh11600 as xfail
2023-07-12 14:08:49 +02:00
Ilija Tovilo
892704267c
[skip ci] Mark bug-gh11600 as xfail
2023-07-12 14:08:28 +02:00
Niels Dossche
66555a9fca
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix bug-gh11600.phpt to work with different ICU versions
2023-07-12 10:36:26 +02:00
Niels Dossche
9c47f33a5f
Fix bug-gh11600.phpt to work with different ICU versions
2023-07-12 10:35:59 +02:00
Derick Rethans
c24cf8d49a
Merge branch 'PHP-8.2'
2023-07-11 16:30:18 +01:00
Derick Rethans
a4bdaeabf6
Fix bug GH-11600: Can't parse time strings which include (narrow) non-breaking space characters
2023-07-11 16:29:04 +01:00
Derick Rethans
783197623d
Merge branch 'PHP-8.2'
2023-06-22 19:06:21 +01:00
Derick Rethans
1b5360587e
Merge branch 'PHP-8.1' into PHP-8.2
2023-06-22 19:06:08 +01:00
Derick Rethans
0747616f84
Fixed GH-11368: Date modify returns invalid datetime
2023-06-22 17:58:19 +01:00
nielsdos
12e4628815
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-11455: Segmentation fault with custom object date properties
Revert "Fix GH-11404: DOMDocument::savexml and friends ommit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM"
2023-06-19 19:45:24 +02:00
Niels Dossche
93becab506
Fix GH-11455: Segmentation fault with custom object date properties
...
Closes GH-11473.
2023-06-19 19:42:09 +02:00
nielsdos
505a30cbbc
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-11281: DateTimeZone::getName() does not include seconds in offset
2023-05-23 18:57:09 +02:00
nielsdos
caab608d57
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11281: DateTimeZone::getName() does not include seconds in offset
2023-05-23 18:56:40 +02:00
Niels Dossche
f9117eb824
Fix GH-11281: DateTimeZone::getName() does not include seconds in offset
...
If the seconds portion is non-zero, include the seconds in the output.
Closes GH-11282.
2023-05-23 18:52:07 +02:00
Derick Rethans
360e6f842c
Merge branch 'PHP-8.2'
2023-04-18 13:48:34 +01:00
Derick Rethans
cc7b799c44
Fixed tests
2023-04-18 13:46:07 +01:00
Derick Rethans
71ff744a29
Merge branch 'PHP-8.2'
2023-04-12 11:39:11 +01:00
Derick Rethans
d3f82f30b7
Merge branch 'PHP-8.1' into PHP-8.2
2023-04-12 11:39:02 +01:00
Derick Rethans
e67bb14ab4
Fixed tests and remove the XFAIL 'Various bugs exist'. They did, but they were in the tests
2023-04-07 23:50:55 +01:00
Derick Rethans
7e224195ab
Merge branch 'PHP-8.2'
2023-03-23 14:51:24 +00:00