1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Include only whole days in Differential stats

Summary: This prevents "8 active days" for last week.

Test Plan: `strtotime('1 week ago 24:00')`

Reviewers: john, epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D2794
This commit is contained in:
vrana 2012-06-18 23:37:58 -07:00
parent 3387e26e7a
commit 21656f0971

View file

@ -68,7 +68,7 @@ final class DifferentialRevisionStatsView extends AphrontView {
'1 year', '18 months',
'2 years', '3 years', '4 years', '5 years',
) as $age) {
$dates[$age] = strtotime($age . ' ago');
$dates[$age] = strtotime($age . ' ago 24:00');
$counts[$age] = 0;
$lines[$age] = 0;
$count_active[$age] = 0;