#22549 [NEW]: Date/Calc.php, beginOfWeek() fails, easier implementations
| From: | koan at gmx dot at | Date: | Wed, 05 Mar 2003 13:35:53 +0000 |
| Subject: | #22549 [NEW]: Date/Calc.php, beginOfWeek() fails, easier implementations | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14082@lists.php.net to get a copy of this message | ||
From: koan at gmx dot at
Operating system: Debian Linux
PHP version: 4.3.1
PHP Bug Type: PEAR related
Bug description: Date/Calc.php, beginOfWeek() fails, easier implementations
Date/Calc.php
this bug report describes various bugs and issues for calculating begin
and end of week (including implementation of beginOfNextWeek and
beginOfPreviousWeek)
- endOfWeek()
fails, if date *is* end of the week
- beginOfWeek()
much easier implementation (1 vs. 11 lines of code)
- beginOfNextWeek(), beginOfPreviousWeek()
failing, if date is end of the week
both functions use their own implementation for getting the beginning of a
week, but *should* use Date_Calc::beginOfWeek()
A diff (including fix for Bug #22548) to CVS Version 1.9 is available at
http://bergfex.at/php/pear/Calc.php.diff.txt
Andreas Kossmeier
--
Edit bug report at http://bugs.php.net/?id=22549&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22549&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22549&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22549&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22549&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22549&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22549&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22549&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22549&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22549&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22549&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22549&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22549&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22549&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22549&r=gnused