aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-02 19:53:36 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-02 19:53:36 +0100
commitee6a1bdde381a4ac95d8c7393deda3ebbaae1ead (patch)
tree0eea61aca703ef53106cb7bb995990515080a275 /app
parent65c972873bd61356defac787bfcdd2cba3323a5e (diff)
PHP : Alertes fonction date()
En attendant https://github.com/marienfressinaud/FreshRSS/issues/310 la fonction date() générait des alertes sur les systèmes n'ayant pas personnalisé PHP Voir http://us3.php.net/manual/en/function.date-default-timezone-set.php
Diffstat (limited to 'app')
-rw-r--r--app/views/index/logs.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index 71a55a1b7..5a0b03b98 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -12,11 +12,11 @@
<?php if (!empty ($items)) { ?>
<div class="logs">
<?php $this->logsPaginator->render ('logs_pagination.phtml', 'page'); ?>
-
+
<?php foreach ($items as $log) { ?>
- <div class="log <?php echo $log->level (); ?>"><span class="date"><?php echo date ('d/m/Y - H:i:s', strtotime ($log->date ())); ?></span><?php echo htmlspecialchars ($log->info (), ENT_NOQUOTES, 'UTF-8'); ?></div>
+ <div class="log <?php echo $log->level (); ?>"><span class="date"><?php echo @date ('Y-m-d H:i:s', strtotime ($log->date ())); ?></span><?php echo htmlspecialchars ($log->info (), ENT_NOQUOTES, 'UTF-8'); ?></div>
<?php } ?>
-
+
<?php $this->logsPaginator->render ('logs_pagination.phtml','page'); ?>
</div>
<?php } else { ?>