php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70369 strtotime has incorrect timezone for KST (Korea)
Submitted: 2015-08-27 15:31 UTC Modified: 2015-08-27 16:29 UTC
From: notvalid at example dot com Assigned:
Status: Duplicate Package: Date/time related
PHP Version: 5.6.12 OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 - 11 = ?
Subscribe to this entry?

 
 [2015-08-27 15:31 UTC] notvalid at example dot com
Description:
------------
The time information returned from strtotime when working with KST is incorrect.

Test script:
---------------
$ TZ=Asia/Seoul php -r "print date('r',  strtotime ('Aug 25 2015 0700 KST'));"


Expected result:
----------------
Tue, 25 Aug 2015 07:00:00 +0900

Actual result:
--------------
Tue, 25 Aug 2015 08:00:00 +0900

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-27 16:29 UTC] cmb@php.net
-Status: Open +Status: Duplicate
 [2015-08-27 16:29 UTC] cmb@php.net
This is a duplicate of bug #51557.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 21:01:32 2024 UTC