[php-src] Issue #8432: Incorrect DST Calculation in Intl
| From: | jimbo2150 | Date: | Sat, 23 Apr 2022 21:51:25 +0000 |
| Subject: | [php-src] Issue #8432: Incorrect DST Calculation in Intl | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241203@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8432
Comment Author: jimbo2150
Was testing some things and changed the date, but still get the same output reguardless:
```php
<?php
date_default_timezone_set('America/New_York');
$cal = new IntlGregorianCalendar(2022, 2, 13, 1, 59, 59);
echo IntlDateFormatter::formatObject($cal), "\n";
$cal->add(IntlCalendar::FIELD_DAY_OF_MONTH, 1);
echo IntlDateFormatter::formatObject($cal), "\n";
$cal->add(IntlCalendar::FIELD_SECOND, 1);
echo IntlDateFormatter::formatObject($cal), "\n";
```
```
Mar 13, 2022, 1:59:59 AM
Mar 14, 2022, 1:59:59 AM
Mar 14, 2022, 2:00:00 AM
```