mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Use a format that's support by both zend php and hphp
Summary: hphp doesn't support "24:00". Use "23:59:59 instead. This is causing the stat page only shows the '1 week' stat. in hphp hphpd> =strtotime('1 week ago') 1340143086 hphpd> =strtotime('1 week ago 24:00') hphpd> =strtotime('1 week ago 23:59:59') 1340175599 in zend php jungejasonmbp15:tmp jungejason$ cat timeformat.php <?php echo strtotime('1 week ago 24:00'); echo "\n"; echo strtotime('1 week ago 23:59:59'); echo "\n"; echo strtotime('1 week ago 24:00') - strtotime('1 week ago 23:59:59');; echo "\n"; jungejasonmbp15:tmp jungejason$ php -f timeformat.php 1340175600 1340175599 1 Test Plan: viewed the stat page. Reviewers: vrana, epriestley Reviewed By: epriestley CC: nh, aran, epriestley Differential Revision: https://secure.phabricator.com/D2865
This commit is contained in:
parent
91284d17e1
commit
da45b09bb4
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ final class DifferentialRevisionStatsView extends AphrontView {
|
||||||
'1 year', '18 months',
|
'1 year', '18 months',
|
||||||
'2 years', '3 years', '4 years', '5 years',
|
'2 years', '3 years', '4 years', '5 years',
|
||||||
) as $age) {
|
) as $age) {
|
||||||
$dates[$age] = strtotime($age . ' ago 24:00');
|
$dates[$age] = strtotime($age . ' ago 23:59:59');
|
||||||
$counts[$age] = 0;
|
$counts[$age] = 0;
|
||||||
$lines[$age] = 0;
|
$lines[$age] = 0;
|
||||||
$count_active[$age] = 0;
|
$count_active[$age] = 0;
|
||||||
|
|
Loading…
Reference in a new issue