#38279 [NEW]: mktime dont work right on all 31 day of a month

2006-08-01 Thread support at ml-networld dot de
From: support at ml-networld dot de
Operating system: Debian Sarge
PHP version:  4CVS-2006-08-01 (CVS)
PHP Bug Type: Date/time related
Bug description:  mktime dont work right on all 31 day of a month

Description:

On the 31 Juli, Oktober, Dezember the code below say that the lastmonth is
the current month. But on the 31 August it say that the last month is jul.
this code is an example code from nuntius on the site
http://de2.php.net/manual/de/function.mktime.php

Reproduce code:
---
$dateMinusOneMonth = mktime(0, 0, 0, date("m")-1, date("d"),  date("Y"));
$lastmonth = date("M", $dateMinusOneMonth);
echo $lastmonth;

Expected result:

on the 31 juli
jun

on the 31 oktober
sep

on the 31 dezember
nov

Actual result:
--
on the 31 juli
jul

on the 31 oktober
okt

on the 31 dezember
dez

-- 
Edit bug report at http://bugs.php.net/?id=38279&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38279&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38279&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38279&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38279&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=38279&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=38279&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=38279&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=38279&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=38279&r=support
Expected behavior:http://bugs.php.net/fix.php?id=38279&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=38279&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=38279&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38279&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38279&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38279&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=38279&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=38279&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38279&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=38279&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=38279&r=mysqlcfg


#38279 [Opn]: mktime dont work right on all 31 day of a month

2006-08-01 Thread support at ml-networld dot de
 ID:   38279
 User updated by:  support at ml-networld dot de
 Reported By:  support at ml-networld dot de
 Status:   Open
 Bug Type: Date/time related
 Operating System: Debian Sarge
-PHP Version:  4CVS-2006-08-01 (CVS)
+PHP Version:  5.1.4
 New Comment:

sorry,
i put the wrong phpversion


Previous Comments:


[2006-08-01 07:09:09] support at ml-networld dot de

Description:

On the 31 Juli, Oktober, Dezember the code below say that the lastmonth
is the current month. But on the 31 August it say that the last month is
jul. this code is an example code from nuntius on the site
http://de2.php.net/manual/de/function.mktime.php

Reproduce code:
---
$dateMinusOneMonth = mktime(0, 0, 0, date("m")-1, date("d"), 
date("Y"));
$lastmonth = date("M", $dateMinusOneMonth);
echo $lastmonth;

Expected result:

on the 31 juli
jun

on the 31 oktober
sep

on the 31 dezember
nov

Actual result:
--
on the 31 juli
jul

on the 31 oktober
okt

on the 31 dezember
dez





-- 
Edit this bug report at http://bugs.php.net/?id=38279&edit=1


#38279 [Bgs]: mktime dont work right on all 31 day of a month

2006-08-01 Thread support at ml-networld dot de
 ID:   38279
 User updated by:  support at ml-networld dot de
 Reported By:  support at ml-networld dot de
 Status:   Bogus
 Bug Type: Date/time related
 Operating System: Debian Sarge
 PHP Version:  5.1.4
 New Comment:

i have the right timezome
Europe/Berlin


Previous Comments:


[2006-08-01 07:32:34] [EMAIL PROTECTED]

You need to set correct timezone.



[2006-08-01 07:11:19] support at ml-networld dot de

sorry,
i put the wrong phpversion



[2006-08-01 07:09:09] support at ml-networld dot de

Description:

On the 31 Juli, Oktober, Dezember the code below say that the lastmonth
is the current month. But on the 31 August it say that the last month is
jul. this code is an example code from nuntius on the site
http://de2.php.net/manual/de/function.mktime.php

Reproduce code:
---
$dateMinusOneMonth = mktime(0, 0, 0, date("m")-1, date("d"), 
date("Y"));
$lastmonth = date("M", $dateMinusOneMonth);
echo $lastmonth;

Expected result:

on the 31 juli
jun

on the 31 oktober
sep

on the 31 dezember
nov

Actual result:
--
on the 31 juli
jul

on the 31 oktober
okt

on the 31 dezember
dez





-- 
Edit this bug report at http://bugs.php.net/?id=38279&edit=1


#38279 [Bgs]: mktime dont work right on all 31 day of a month

2006-08-01 Thread support at ml-networld dot de
 ID:   38279
 User updated by:  support at ml-networld dot de
 Reported By:  support at ml-networld dot de
 Status:   Bogus
 Bug Type: Date/time related
 Operating System: Debian Sarge
 PHP Version:  5.1.4
 New Comment:

I test this problem in a xammp environment under my local windows, and
there i have the same problem.


Previous Comments:


[2006-08-01 07:37:02] support at ml-networld dot de

i have the right timezome
Europe/Berlin



[2006-08-01 07:32:34] [EMAIL PROTECTED]

You need to set correct timezone.



[2006-08-01 07:11:19] support at ml-networld dot de

sorry,
i put the wrong phpversion



[2006-08-01 07:09:09] support at ml-networld dot de

Description:

On the 31 Juli, Oktober, Dezember the code below say that the lastmonth
is the current month. But on the 31 August it say that the last month is
jul. this code is an example code from nuntius on the site
http://de2.php.net/manual/de/function.mktime.php

Reproduce code:
---
$dateMinusOneMonth = mktime(0, 0, 0, date("m")-1, date("d"), 
date("Y"));
$lastmonth = date("M", $dateMinusOneMonth);
echo $lastmonth;

Expected result:

on the 31 juli
jun

on the 31 oktober
sep

on the 31 dezember
nov

Actual result:
--
on the 31 juli
jul

on the 31 oktober
okt

on the 31 dezember
dez





-- 
Edit this bug report at http://bugs.php.net/?id=38279&edit=1


#38279 [Bgs->Csd]: mktime dont work right on all 31 day of a month

2006-08-01 Thread support at ml-networld dot de
 ID:   38279
 User updated by:  support at ml-networld dot de
 Reported By:  support at ml-networld dot de
-Status:   Bogus
+Status:   Closed
 Bug Type: Date/time related
 Operating System: Debian Sarge
 PHP Version:  5.1.4
 New Comment:

thx.


Previous Comments:


[2006-08-01 13:01:09] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Clue: what are the 31sts of June, September and November?



[2006-08-01 09:07:01] support at ml-networld dot de

I test this problem in a xammp environment under my local windows, and
there i have the same problem.



[2006-08-01 07:37:02] support at ml-networld dot de

i have the right timezome
Europe/Berlin



[2006-08-01 07:32:34] [EMAIL PROTECTED]

You need to set correct timezone.



[2006-08-01 07:11:19] support at ml-networld dot de

sorry,
i put the wrong phpversion



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/38279

-- 
Edit this bug report at http://bugs.php.net/?id=38279&edit=1