bugphpGroupWare - Bugs: bug #12586, Dates prior to January 1, 1970...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12586: Dates prior to January 1, 1970 causes warnings in class.jscalendar.inc.php

Submitter:  Charles Martin <cafefroid>
Submitted:  Wed 06 Apr 2005 05:08:41 PM UTC
 
Item Group:  0.9.16.005 Category:  API - phpGroupware API
Severity:  3 - Normal Priority:  * 5 - Normal
Status:  Duplicate Privacy:  Public
Assigned to:  jarg Open/Closed:  Closed
Component Version:  None Operating System:  MS Windows
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Mon 16 Feb 2009 10:01:22 AM UTC, comment #2: 

dupe of #9739

Dave Hall <skwashd>
Project Administrator
Sun 04 Dec 2005 10:08:07 AM UTC, comment #1: 

Jarg in HEAD we need to use a float for storing birthdays and use julian dates - or something to solve this issue

Dave Hall <skwashd>
Project Administrator
Wed 06 Apr 2005 05:08:41 PM UTC, original submission:  

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

Charles Martin <cafefroid>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by skwashd (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-16 skwashd StatusNone Duplicate
        Open/ClosedOpen Closed
    2005-12-04 skwashd Assigned toNone jarg
    2005-04-06 cafefroid Carbon-Copy- Added cafefroid

    Back to the top


    Powered by Savane 3.9