Skip to content

Commit

Permalink
fix week type
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Dec 10, 2018
1 parent c7f4741 commit f806efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/IDateColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ export function toDateGroup(grouper: IDateGrouper, value: Date): {value: number,
if (grouper.circular) {
return {
value: value.getMonth(),
name: timeFormat('%B')(value) // TODO
name: timeFormat('%W')(value)
};
}
return {
value: timeWeek(value).getTime(),
name: timeFormat('%B %Y')(value) // TODO
name: timeFormat('%W %Y')(value)
};
case 'day_of_week':
if (grouper.circular) {
Expand Down

0 comments on commit f806efc

Please sign in to comment.