Project

General

Profile

Actions

Bug #2383

closed

Days diff function algorithm broken around year switch

Added by beat over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
08 March 2011
Due date:
% Done:

100%

Estimated time:

Description

cbgroupjive.class.php line 1025:

            $current            =    getdate( $_CB_framework->now() );
            $invited            =    getdate( strtotime( $this->invited ) );
            $diff[$this->id]    =    ( $invited['yday'] - $current['yday'] );

This won't work at the begin or end of the year when e.g. invited = 365 and current = 1.

Actions

Also available in: Atom PDF