[test issue] Time Zone not set correctly #29

Closed
opened 2026-01-24 11:40:19 +01:00 by admin · 3 comments
Owner

Originally created by @hollyhuiLi on GitHub (Jun 25, 2019).

test case: ext/date/tests/bug33532.phpt
diff:
@@ -4,1 +4,1 @@
Should strftime==datestr? Strftime seems to assume GMT tStamp.
input 10:00:00 AM July 1 2005
+strftime 10:00:00 AM July 1 2005 Pacific Standard Time -0800
-strftime 10:00:00 AM July 1 2005 UTC +0000
@@ -9,1 +9,1 @@

Setting TZ
input 10:00:00 AM July 1 2005
+strftime 10:00:00 AM July 1 2005 Pacific Standard Time -0800
-strftime 10:00:00 AM July 1 2005 AEST +1000
-datestr 10:00:00 AM July 1 2005 AEST

Originally created by @hollyhuiLi on GitHub (Jun 25, 2019). test case: ext/date/tests/bug33532.phpt diff: @@ -4,1 +4,1 @@ Should strftime==datestr? Strftime seems to assume GMT tStamp. input 10:00:00 AM July 1 2005 +strftime 10:00:00 AM July 1 2005 Pacific Standard Time -0800 -strftime 10:00:00 AM July 1 2005 UTC +0000 @@ -9,1 +9,1 @@ Setting TZ input 10:00:00 AM July 1 2005 +strftime 10:00:00 AM July 1 2005 Pacific Standard Time -0800 -strftime 10:00:00 AM July 1 2005 AEST +1000 -datestr 10:00:00 AM July 1 2005 AEST
admin closed this issue 2026-01-24 11:40:19 +01:00
Author
Owner

@cmb69 commented on GitHub (Jun 25, 2019):

Hmm, this test is supposed to be skipped on Windows: e18c60cd8d/ext/date/tests/bug33532.phpt (L8)

Maybe #41 isn't sufficient for proper --SKIPIF-- support?

@cmb69 commented on GitHub (Jun 25, 2019): Hmm, this test is supposed to be skipped on Windows: https://github.com/php/php-src/blob/e18c60cd8dfed02311ebb3d11e3543d9a99c7c2a/ext/date/tests/bug33532.phpt#L8 Maybe #41 isn't sufficient for proper `--SKIPIF--` support?
Author
Owner

@hollyhuiLi commented on GitHub (Jun 25, 2019):

Maybe, I did included #41 before I run the test with PFTT, I will double check tomorrow.

There are more tests related to SKIPIF not evaluated correctly, details in issue #47 and #48 .

@hollyhuiLi commented on GitHub (Jun 25, 2019): Maybe, I did included #41 before I run the test with PFTT, I will double check tomorrow. There are more tests related to SKIPIF not evaluated correctly, details in issue #47 and #48 .
Author
Owner

@hollyhuiLi commented on GitHub (Aug 11, 2019):

closed by #57

@hollyhuiLi commented on GitHub (Aug 11, 2019): closed by #57
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: php/pftt2#29