From:             [EMAIL PROTECTED]
Operating system: WIN 2000
PHP version:      4.2.1
PHP Bug Type:     Date/time related
Bug description:  date function gives wrong result for format 't'

<?php
// As September has 30 days $x, $y & $z should all be
// 30 ... instead the result is always 31
// Unfortunately cal_days_in_month is not supported on the
// target server (php 4.1.2) even though though the
// documentation says it is

$x = date('t', '1 Sep 2002');
$y = date('t', 'Sep');
$z = date('t', '2002-09-01');
?>

-- 
Edit bug report at http://bugs.php.net/?id=20596&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20596&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20596&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20596&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20596&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20596&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20596&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20596&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20596&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20596&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20596&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20596&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20596&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20596&r=isapi

Reply via email to