Skip to content

Commit

Permalink
Add month and year to daily date range
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachTRice committed Jun 8, 2018
1 parent 5b5fc6e commit 3a1dd83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/js/layers/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export function layersInfo(config, models, layer) {
}
} else if (layer.period === 'daily') {
if (dateRange.dateInterval === '1' && dateRange.startDate === dateRange.endDate) {
rangeStartDate = rangeStartDate.getDate();
rangeStartDate = rangeStartDate.getDate() + ' ' + util.giveMonth(rangeStartDate) + ' ' +
rangeStartDate.getFullYear();
$layerDateRanges.append('<li class="list-group-item">' + rangeStartDate + '</li>');
} else {
rangeStartDate = rangeStartDate.getDate() + ' ' + util.giveMonth(rangeStartDate) + ' ' +
Expand Down

0 comments on commit 3a1dd83

Please sign in to comment.