Fixed day formatting in commitgraph
This commit is contained in:
parent
5cdc1ddf9a
commit
3972359e9d
13
www/index_prod.php
Normal file
13
www/index_prod.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// change the following paths if necessary
|
||||||
|
$yii=dirname(__FILE__).'/../framework/yii.php';
|
||||||
|
$config=dirname(__FILE__).'/protected/config/main.php';
|
||||||
|
|
||||||
|
// remove the following lines when in production mode
|
||||||
|
//defined('YII_DEBUG') or define('YII_DEBUG',true);
|
||||||
|
// dev or prod - merges settings with respective file
|
||||||
|
defined('YII_CUSTOM_ENV') or define('YII_CUSTOM_ENV', 'prod');
|
||||||
|
|
||||||
|
require_once($yii);
|
||||||
|
Yii::createWebApplication($config)->run();
|
@ -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())->days + 1; ?> day<?php echo (($egh['creation']->diff(new DateTime())->days == 0) ? '' : 's')?> ago</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-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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user