[php-src] Issue #10028: Wrong timezone offset returned for KST. It should be UTC+09:00 not UTC+08:30
| From: | charlyhong | Date: | Wed, 30 Nov 2022 18:56:37 +0000 |
| Subject: | [php-src] Issue #10028: Wrong timezone offset returned for KST. It should be UTC+09:00 not UTC+08:30 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243006@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10028
Author: charlyhong
### Description
The following code:
```php
<?php
$dt = DateTime::createFromFormat("Y-m-d H:i:s T", '2022-11-30 23:10:01 KST');
echo $dt->getTimestamp()."\n";
$dt2 = DateTimeImmutable::createFromFormat("Y-m-d H:i:s e", '2022-11-30 23:10:01
Asia/Seoul');
echo $dt2->getTimestamp()."\n";
?>
```
Resulted in this output:
```
1669819201
1669817401
```
But I expected this output instead:
```
1669817401
1669817401
```
### PHP Version
PHP 8.1.13
### Operating System
Linux 6.0.9-arch1-1