summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/index/logs.phtml6
-rw-r--r--lib/lib_rss.php2
2 files changed, 4 insertions, 4 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 { ?>
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 9bce0760b..22e50a424 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -70,7 +70,7 @@ function timestamptodate ($t, $hour = true) {
$date = Translate::t ('format_date', $month);
}
- return date ($date, $t);
+ return @date ($date, $t);
}
function sortEntriesByDate ($entry1, $entry2) {