<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/9414/bug">
    <title>PEAR Bug #9414</title>
    <link>http://pear.php.net/bugs/9414</link>
    <description>[Closed] addSeconds fails to work properly with negative numbers</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9414"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9414/2006-11-21+19%3A29%3A53#2006-11-21+19%3A29%3A53"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/9414">
      <title>kpeters@... [2006-11-21 18:16:59]</title>
      <link>http://pear.php.net/bugs/9414</link>
      <description><![CDATA[<pre>Date Bug
Reported by kpeters@...
2006-11-21T23:16:59-00:00
PHP: 4.3.3 OS: SuSE Linux 9.0 Package Version: 1.4.6

Description:
------------
Adding a negative number of seconds to a date via addSeconds does not modify the date.

Test script:
---------------
&lt;?php
require_once 'Date.php';
$date = new Date('2006-11-21');

print &quot;Date is now: &quot; . $date-&gt;format(&quot;%Y-%m-%d %H:%M&quot;) . &quot;\n&quot;;
$date-&gt;addSeconds(-1 * 86400 * 7); # subtract 1 week
print &quot;After subtracting a week's worth of seconds, date is: &quot; . $date-&gt;format(&quot;%Y-%m-%d %H:%M&quot;) . &quot;\n&quot;;

?&gt;





Expected result:
----------------
Date should be decremented by the specified number of seconds

Actual result:
--------------
Date is unchanged.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Date Bug
Reported by kpeters@...
2006-11-21T23:16:59-00:00
PHP: 4.3.3 OS: SuSE Linux 9.0 Package Version: 1.4.6

Description:
------------
Adding a negative number of seconds to a date via addSeconds does not modify the date.

Test script:
---------------
&lt;?php
require_once 'Date.php';
$date = new Date('2006-11-21');

print &quot;Date is now: &quot; . $date-&gt;format(&quot;%Y-%m-%d %H:%M&quot;) . &quot;\n&quot;;
$date-&gt;addSeconds(-1 * 86400 * 7); # subtract 1 week
print &quot;After subtracting a week's worth of seconds, date is: &quot; . $date-&gt;format(&quot;%Y-%m-%d %H:%M&quot;) . &quot;\n&quot;;

?&gt;





Expected result:
----------------
Date should be decremented by the specified number of seconds

Actual result:
--------------
Date is unchanged.</pre>]]></content:encoded>
      <dc:date>2006-11-21T23:16:59-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9414/2006-11-21+19%3A29%3A53#2006-11-21+19%3A29%3A53">
      <title>firman [2006-11-22 00:29]</title>
      <link>http://pear.php.net/bugs/9414#1164155393</link>
      <description><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></description>
      <content:encoded><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></content:encoded>
      <dc:date>2006-11-22T00:29:53-00:00</dc:date>
    </item>
</rdf:RDF>