Ask a Question related to PHP Development, Design and Development.
-
jpage at javeo dot com #1
#24941 [NEW]: strtotime returns same date for "first wednesday" and "second Wednesday"
From: jpage at javeo dot com
Operating system: Red Hat Linux
PHP version: 4.3.1
PHP Bug Type: Date/time related
Bug description: strtotime returns same date for "first wednesday" and "second Wednesday"
Description:
------------
strtotime() returns the same result for "first wednesday" and "second
wednesday". I ran this against 'today' - Aug 4 2003, but the code below
should show the error on any day.
Reproduce code:
---------------
$t=strtotime("Aug 3 2003");
$r=strtotime("first wednesday",$t);
print(date('r',$r));
print("<br>");
$r=strtotime("second wednesday",$t);
print(date('r',$r));
Expected result:
----------------
two different dates a week apart
Actual result:
--------------
Wed Aug for both
--
Edit bug report at [url]http://bugs.php.net/?id=24941&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24941&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24941&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24941&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24941&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24941&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24941&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24941&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24941&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24941&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24941&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24941&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24941&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24941&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24941&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24941&r=gnused[/url]
jpage at javeo dot com Guest
-
"make Makefile.PL" returns "...up to date"; make returns "no target to make"
I'm attempting to install a perl module (AppConfig-1.56) on a FreeBSD 4.9 system. It has both perl 5.5.3 and 5.8.3 and several modules are already... -
#20382 [Com]: strtotime ("Monday", $date) can produce incorrect output
ID: 20382 Comment by: pierre dot baudracco at aliacom dot fr Reported By: nickj-phpbugs at nickj dot org Status: ... -
#24941 [Bgs]: strtotime returns same date for "first wednesday" and "second Wednesday"
ID: 24941 User updated by: jpage at javeo dot com Reported By: jpage at javeo dot com Status: Bogus Bug Type: ... -
#24941 [Opn->Bgs]: strtotime returns same date for "first wednesday" and "second Wednesday"
ID: 24941 Updated by: iliaa@php.net Reported By: jpage at javeo dot com -Status: Open +Status: Bogus... -
dr("field").toString returns "400.0000" instead of "400"
I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to...



Reply With Quote

