aboutsummaryrefslogtreecommitdiff
path: root/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'list.php')
-rw-r--r--list.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/list.php b/list.php
index 3210aff..27858a5 100644
--- a/list.php
+++ b/list.php
@@ -23,8 +23,10 @@ function format_date_range ($start,$end)
$dates.=date (' M Y',$start).' to '.date ('j M',$end);
else if (date ('M',$start) != date ('M',$end))
$dates.=date (' M',$start).' to '.date ('j M',$end);
- else
+ else if (date ('j',$start) != date ('j',$end))
$dates.='–'.date ('j M',$end);
+ else
+ $dates.=date (' M',$start);
if (date ('Y') != date ('Y',$end))
$dates.=date (' Y',$end);
return $dates;