]> granicus.if.org Git - php/commitdiff
Fix spring tests for dst/st transition second.
authorDaniel Convissor <danielc@php.net>
Mon, 22 Aug 2011 14:47:12 +0000 (14:47 +0000)
committerDaniel Convissor <danielc@php.net>
Mon, 22 Aug 2011 14:47:12 +0000 (14:47 +0000)
ext/date/tests/DateTime_data-spring-type2-type2.inc
ext/date/tests/DateTime_data-spring-type2-type3.inc
ext/date/tests/DateTime_data-spring-type3-type2.inc
ext/date/tests/DateTime_data-spring-type3-type3.inc
ext/date/tests/DateTime_days-spring-type2-type2.phpt
ext/date/tests/DateTime_days-spring-type2-type3.phpt
ext/date/tests/DateTime_days-spring-type3-type2.phpt
ext/date/tests/DateTime_days-spring-type3-type3.phpt

index 3556b207b382a55105b0fe8509554157be2d1518..d9e07c31301cd47edb45780e464430eb6fe16f8d 100644 (file)
@@ -99,11 +99,11 @@ $start = new DateTime('2010-03-15 18:57:55 EDT');  // sp post, zt2
 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0);
 
 echo "test_time_spring_type2_stsec_type2_dtsec: ";
-$end   = new DateTime('2010-03-15 03:00:00 EDT');  // dtsec, zt2
-$start = new DateTime('2010-03-13 01:59:59 EST');  // stsec, zt2
+$end   = new DateTime('2010-03-14 03:00:00 EDT');  // dtsec, zt2
+$start = new DateTime('2010-03-14 01:59:59 EST');  // stsec, zt2
 examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0);
 
 echo "test_time_spring_type2_dtsec_type2_stsec: ";
-$end   = new DateTime('2010-03-15 01:59:59 EST');  // stsec, zt2
-$start = new DateTime('2010-03-13 03:00:00 EDT');  // dtsec, zt2
+$end   = new DateTime('2010-03-14 01:59:59 EST');  // stsec, zt2
+$start = new DateTime('2010-03-14 03:00:00 EDT');  // dtsec, zt2
 examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0);
index b06825837c71c6991c7df5355f292502cf8ba371..d66fc51778cb48c9b606b8a4b82e557d805ea47b 100644 (file)
@@ -99,11 +99,11 @@ $start = new DateTime('2010-03-15 18:57:55 EDT');  // sp post, zt2
 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0);
 
 echo "test_time_spring_type2_stsec_type3_dtsec: ";
-$end   = new DateTime('2010-03-15 03:00:00');  // dtsec, zt3
-$start = new DateTime('2010-03-13 01:59:59 EST');  // stsec, zt2
+$end   = new DateTime('2010-03-14 03:00:00');  // dtsec, zt3
+$start = new DateTime('2010-03-14 01:59:59 EST');  // stsec, zt2
 examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0);
 
 echo "test_time_spring_type2_dtsec_type3_stsec: ";
-$end   = new DateTime('2010-03-15 01:59:59');  // stsec, zt3
-$start = new DateTime('2010-03-13 03:00:00 EDT');  // dtsec, zt2
+$end   = new DateTime('2010-03-14 01:59:59');  // stsec, zt3
+$start = new DateTime('2010-03-14 03:00:00 EDT');  // dtsec, zt2
 examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0);
index 244cd58819e29877adc554a8259749efddbce9c1..92211f4b1a86cb72d0ec57a60b71730f5285257a 100644 (file)
@@ -99,11 +99,11 @@ $start = new DateTime('2010-03-15 18:57:55');  // sp post, zt3
 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0);
 
 echo "test_time_spring_type3_stsec_type2_dtsec: ";
-$end   = new DateTime('2010-03-15 03:00:00 EDT');  // dtsec, zt2
-$start = new DateTime('2010-03-13 01:59:59');  // stsec, zt3
+$end   = new DateTime('2010-03-14 03:00:00 EDT');  // dtsec, zt2
+$start = new DateTime('2010-03-14 01:59:59');  // stsec, zt3
 examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0);
 
 echo "test_time_spring_type3_dtsec_type2_stsec: ";
-$end   = new DateTime('2010-03-15 01:59:59 EST');  // stsec, zt2
-$start = new DateTime('2010-03-13 03:00:00');  // dtsec, zt3
+$end   = new DateTime('2010-03-14 01:59:59 EST');  // stsec, zt2
+$start = new DateTime('2010-03-14 03:00:00');  // dtsec, zt3
 examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0);
index d87373c5a4b408073b6b82a4e9c0cd622cd62dd3..de1dee12e620a7e4519d0d35285447b237959ed9 100644 (file)
@@ -99,11 +99,11 @@ $start = new DateTime('2010-03-15 18:57:55');  // sp post, zt3
 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0);
 
 echo "test_time_spring_type3_stsec_type3_dtsec: ";
-$end   = new DateTime('2010-03-15 03:00:00');  // dtsec, zt3
-$start = new DateTime('2010-03-13 01:59:59');  // stsec, zt3
+$end   = new DateTime('2010-03-14 03:00:00');  // dtsec, zt3
+$start = new DateTime('2010-03-14 01:59:59');  // stsec, zt3
 examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0);
 
 echo "test_time_spring_type3_dtsec_type3_stsec: ";
-$end   = new DateTime('2010-03-15 01:59:59');  // stsec, zt3
-$start = new DateTime('2010-03-13 03:00:00');  // dtsec, zt3
+$end   = new DateTime('2010-03-14 01:59:59');  // stsec, zt3
+$start = new DateTime('2010-03-14 03:00:00');  // dtsec, zt3
 examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0);
index 3f9c353523ae77890bc26de2d21c09bf6ca2b0ba..3e702ace09a2c78b50dae09b54da4f640c9e4944 100644 (file)
@@ -27,5 +27,5 @@ test_time_spring_type2_post_type2_prev: DAYS: **2**
 test_time_spring_type2_post_type2_st: DAYS: **1**
 test_time_spring_type2_post_type2_dt: DAYS: **1**
 test_time_spring_type2_post_type2_post: DAYS: **0**
-test_time_spring_type2_stsec_type2_dtsec: DAYS: **0** 
+test_time_spring_type2_stsec_type2_dtsec: DAYS: **0**
 test_time_spring_type2_dtsec_type2_stsec: DAYS: **0**
index 77ac5fdb6daf5c8050c07b48f161c0b361e01e90..0e23ac3e2c4f469a141f3ea9b3e0a3bae50ec645 100644 (file)
@@ -27,5 +27,5 @@ test_time_spring_type2_post_type3_prev: DAYS: **2**
 test_time_spring_type2_post_type3_st: DAYS: **1**
 test_time_spring_type2_post_type3_dt: DAYS: **1**
 test_time_spring_type2_post_type3_post: DAYS: **0**
-test_time_spring_type2_stsec_type3_dtsec: DAYS: **0** 
+test_time_spring_type2_stsec_type3_dtsec: DAYS: **0**
 test_time_spring_type2_dtsec_type3_stsec: DAYS: **0**
index 09aa8d9c1d7af421bededfd0647ff259dae1292b..4fb9ba76d210fe8ff8c10adeaf10e32c4db8d86b 100644 (file)
@@ -27,5 +27,5 @@ test_time_spring_type3_post_type2_prev: DAYS: **2**
 test_time_spring_type3_post_type2_st: DAYS: **1**
 test_time_spring_type3_post_type2_dt: DAYS: **1**
 test_time_spring_type3_post_type2_post: DAYS: **0**
-test_time_spring_type3_stsec_type2_dtsec: DAYS: **0** 
+test_time_spring_type3_stsec_type2_dtsec: DAYS: **0**
 test_time_spring_type3_dtsec_type2_stsec: DAYS: **0**
index f947329dea9b3b215675ff2815a18d976d7819e6..df44925fbd1e665ba868a736c3e54b77a504041c 100644 (file)
@@ -27,5 +27,5 @@ test_time_spring_type3_post_type3_prev: DAYS: **2**
 test_time_spring_type3_post_type3_st: DAYS: **1**
 test_time_spring_type3_post_type3_dt: DAYS: **1**
 test_time_spring_type3_post_type3_post: DAYS: **0**
-test_time_spring_type3_stsec_type3_dtsec: DAYS: **0** 
+test_time_spring_type3_stsec_type3_dtsec: DAYS: **0**
 test_time_spring_type3_dtsec_type3_stsec: DAYS: **0**