Skip to content
Snippets Groups Projects
Commit a4ca980e authored by Cam Saül's avatar Cam Saül Committed by GitHub
Browse files

Merge pull request #3774 from metabase/allow-day-of-month-in-frontend

Reënable day-of-month date grouping option (credit: @tbatchelli)
parents 00f7d197 5aec047f
Branches
Tags
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.
Please register or to comment