[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [bug #12586] Dates prior to January 1, 1970 cause
From: |
Charles Martin |
Subject: |
[Phpgroupware-tracker] [bug #12586] Dates prior to January 1, 1970 causes warnings in class.jscalendar.inc.php |
Date: |
Wed, 6 Apr 2005 17:08:42 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12586>
Summary: Dates prior to January 1, 1970 causes warnings in
class.jscalendar.inc.php
Project: phpGroupWare
Submitted by: cafefroid
Submitted on: Wed 04/06/2005 at 17:08
Item Group: 0.9.16.005
Category: API - phpGWapi
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Component Version: None
Platform Version: MS Windows
Reproducibility: Every Time
Planned Release: None
Fixed Release:
_______________________________________________________
Details:
When in AddressBook (and probably a lot of other places too) and editing a
person which birthday's was entered as a date before january 1st 1970 causes
the following warnings :
Warning: mktime(): Windows does not support negative values for this function
in [...]\webpub\phpgwapi\inc\class.jscalendar.inc.php on line 78
Warning: date(): Windows does not support dates prior to midnight (00:00:00),
January 1, 1970 in [...]\webpub\phpgwapi\inc\class.jscalendar.inc.php on line
78
I added this line right before line 78 and the following output is returned
:
echo "$year && $month && $day";
1969 && 12 && 31
It's pretty bad if your enter data for any individual older than 36 years old
:-P
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
cafefroid |
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12586>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-tracker] [bug #12586] Dates prior to January 1, 1970 causes warnings in class.jscalendar.inc.php,
Charles Martin <=