1
0

Fixed "days" display not correct

This commit is contained in:
Mike Schwörer 2015-06-29 15:45:50 +02:00
parent 5e2214a1e2
commit 28776b668e

View File

@ -36,7 +36,7 @@ $this->selectedNav = 'about';
<div class="gitbox-footer"> <div class="gitbox-footer">
<div class="gitbox-footer-box"> <div class="gitbox-footer-box">
<span class="gitbox-footer-box-header">Last Update</span> <span class="gitbox-footer-box-header">Last Update</span>
<span class="gitbox-footer-box-number"><?php echo $egh['creation']->diff(new DateTime())->format('%d') + 1; ?> day<?php echo (($egh['creation']->diff(new DateTime())->format('%d') == 0) ? '' : 's')?> ago</span> <span class="gitbox-footer-box-number"><?php echo $egh['creation']->diff(new DateTime())->days + 1; ?> day<?php echo (($egh['creation']->diff(new DateTime())->days == 0) ? '' : 's')?> ago</span>
<span class="gitbox-footer-box-footer"><?php echo $egh['creation']->format('M d Y'); ?></span> <span class="gitbox-footer-box-footer"><?php echo $egh['creation']->format('M d Y'); ?></span>
</div> </div>
@ -122,4 +122,4 @@ $this->selectedNav = 'about';
<?php echo MsHtml::well( file_get_contents('protected/data/disclaimer.php') ); ?> <?php echo MsHtml::well( file_get_contents('protected/data/disclaimer.php') ); ?>
</div> </div>