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

Submitted by:  Charles Martin <cafefroid>
Submitted on:  Wed 06 Apr 2005 05:08:41 PM UTC  
 
Item Group: 0.9.16.005Category: API - phpGroupware API
Severity: 3 - NormalPriority: 5 - Normal
Status: DuplicatePrivacy: Public
Assigned to: Jonathan Rivera <jarg>Open/Closed: Closed
Component Version: NoneOperating System: MS Windows
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Feb 2009 10:01:22 AM UTCskwashdStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Sun 04 Dec 2005 10:08:07 AM UTCskwashdAssigned toNone=>jarg
    Wed 06 Apr 2005 05:08:41 PM UTCcafefroidCarbon-Copy-=>Added cafefroid

    Back to the top


    Powered by Savane 3.1-cleanup1