mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-19 18:02:34 -04:00
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
This commit is contained in:
1 parent
65c972873b
commit
ee6a1bdde3
2 files changed
+4
-4
No files matched your search
@@ -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 { ?>
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user