summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Stevenson2012-01-18 17:08:49 (GMT)
committer Karen Stevenson2012-01-18 17:08:49 (GMT)
commit30b891617e69289f6f59e2ad401e09d4494f3dfc (patch)
treed96f587af7e2c3d90365593735abc7d90ac08e7a
parent83f0d4fc5e0edfb416bb879451cdfc454c9bede5 (diff)
Issue #1376476 by pbfleetwood, Add commas to default formatting of week and day headers.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--date_views/theme/theme.inc4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index af133ad..a2ba7af 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -5,6 +5,7 @@ Date Module 7.x
Version 7.x-2.x-dev
===================
+- Issue #1376476 by pbfleetwood, Add commas to default formatting of week and day headers.
- Issue #1408430, Views pagination with exposed, unset, filters, results in invalid default values. Treat them as empty input.
- Issue #1408996, Exposed Date Popup widget with time not correctly initialized.
- Issue #1271726, Text widgets in exposed filters used with pagers produce unexpected results.
diff --git a/date_views/theme/theme.inc b/date_views/theme/theme.inc
index 806b48c..4a7d4bc 100644
--- a/date_views/theme/theme.inc
+++ b/date_views/theme/theme.inc
@@ -176,12 +176,12 @@ function theme_date_nav_title($params) {
$date_arg = $date_info->year . '-' . date_pad($date_info->month);
break;
case 'day':
- $format = !empty($format) ? $format : (empty($date_info->mini) ? 'l, F j Y' : 'l, F j');
+ $format = !empty($format) ? $format : (empty($date_info->mini) ? 'l, F j, Y' : 'l, F j');
$title = date_format_date($date_info->min_date, 'custom', $format);
$date_arg = $date_info->year . '-' . date_pad($date_info->month) . '-' . date_pad($date_info->day);
break;
case 'week':
- $format = !empty($format) ? $format : (empty($date_info->mini) ? 'F j Y' : 'F j');
+ $format = !empty($format) ? $format : (empty($date_info->mini) ? 'F j, Y' : 'F j');
$title = t('Week of @date', array('@date' => date_format_date($date_info->min_date, 'custom', $format)));
$date_arg = $date_info->year . '-W' . date_pad($date_info->week);
break;