]> granicus.if.org Git - php/commitdiff
Same thing here. "June 18, 1969 8:49:59 AM " does not contain a timezone, so there
authorRasmus Lerdorf <rasmus@php.net>
Sun, 5 Feb 2012 10:35:56 +0000 (10:35 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 5 Feb 2012 10:35:56 +0000 (10:35 +0000)
is no way to know whether dst should be applied or not.

ext/intl/tests/dateformat_localtime.phpt

index 0e9a4c34ab87e00291c1e1890b2b67c59a3f8470..0f04a653f465173442df9205cfc3504daf1e527a 100755 (executable)
@@ -92,7 +92,7 @@ include_once( 'ut_common.inc' );
 // Run the test
 ut_run();
 ?>
---EXPECT--
+--EXPECTF--
 -------------------------------
 
 Input text is : Thursday, December 18, 1969 8:49:59 AM PST
@@ -110,7 +110,7 @@ Input text is : June 18, 1969 8:49:59 AM
 IntlDateFormatter : DateType::LONG, TimeType::LONG
 ------------
 IntlDateFormatter : DateType::MEDIUM, TimeType::MEDIUM
-tm_sec : '59' , tm_min : '49' , tm_hour : '8' , tm_year : '69' , tm_mday : '18' , tm_wday : '3' , tm_yday : '169' , tm_mon : '5' , tm_isdst : '1' , 
+tm_sec : '59' , tm_min : '49' , tm_hour : '8' , tm_year : '69' , tm_mday : '18' , tm_wday : '3' , tm_yday : '169' , tm_mon : '5' , tm_isdst : '%d' , 
 ------------
 IntlDateFormatter : DateType::FULL, TimeType::FULL
 -------------------------------
@@ -130,4 +130,4 @@ IntlDateFormatter : DateType::LONG, TimeType::LONG
 ------------
 IntlDateFormatter : DateType::MEDIUM, TimeType::MEDIUM
 ------------
-IntlDateFormatter : DateType::FULL, TimeType::FULL
\ No newline at end of file
+IntlDateFormatter : DateType::FULL, TimeType::FULL