Hi all,
Another patch that uses format_time for better date display:
Index: include/attach_func.php
===================================================================
--- include/attach_func.php (révision 1592)
+++ include/attach_func.php (copie de travail)
@@ -226,7 +226,7 @@
$show_image = false;
$download_link = !empty($attach['secure_str']) ? forum_link($attach_url['misc_download_secure'], array($attach['id'], $attach['secure_str'])) : forum_link($attach_url['misc_download'], $attach['id']);
$view_link = !empty($attach['secure_str']) ? forum_link($attach_url['misc_view_secure'], array($attach['id'], $attach['secure_str'])) : forum_link($attach_url['misc_view'], $attach['id']);
- $attach_info = format_size($attach['size']).', '.($attach['download_counter'] ? sprintf($lang_attach['Since'], $attach['download_counter'], date('Y-m-d', $attach['uploaded_at'])) : $lang_attach['Never download']).' ';
+ $attach_info = format_size($attach['size']).', '.($attach['download_counter'] ? sprintf($lang_attach['Since'], $attach['download_counter'], format_time($attach['uploaded_at'],1)) : $lang_attach['Never download']).' ';
?>
<div class="<?php echo $show_image ? 'ct-set' : 'sf-set'; ?> set<?php echo ++$forum_page['item_count'] ?>">
@@ -292,7 +292,7 @@
$show_image = false;
$download_link = forum_link($attach_url['misc_download'], $attach['id']);
- $attach_info = format_size($attach['size']).', '.($attach['download_counter'] ? sprintf($lang_attach['Since'], $attach['download_counter'], date('Y-m-d', $attach['uploaded_at'])) : $lang_attach['Never download']).' ';
+ $attach_info = format_size($attach['size']).', '.($attach['download_counter'] ? sprintf($lang_attach['Since'], $attach['download_counter'], format_time($attach['uploaded_at'],1)) : $lang_attach['Never download']).' ';
if ($allow_downloading)
{
if ($show_image)
@@ -383,4 +383,4 @@
$forum_db->query_build($attach_query) or error(__FILE__, __LINE__);
}
}
-}
\ No newline at end of file
+}
Charly.