Skip to content
Snippets Groups Projects
Commit 5aec047f authored by Cam Saül's avatar Cam Saül
Browse files

Reënable day-of-month date grouping option (credit: @tbatchelli)

parent a1ff9479
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,8 @@ function formatTimeWithUnit(value, unit, options = {}) {
return moment().hour(value).format("h A");
case "day-of-week": // Sunday
return moment().day(value - 1).format("dddd");
case "day-of-month":
return moment().date(value).format("D");
case "week-of-year": // 1st
return moment().week(value).format("wo");
case "month-of-year": // January
......
......@@ -49,7 +49,7 @@ export default class TimeGroupingPopover extends Component {
// "minute-of-hour",
"hour-of-day",
"day-of-week",
// "day-of-month",
"day-of-month",
// "day-of-year",
"week-of-year",
"month-of-year",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment