Skip to content

Commit 6e73cc0

Browse files
authored
Merge pull request #1 from IbrahimHd/IbrahimHd-patch-1
Update README | preset ranges
2 parents 7137144 + adaf82b commit 6e73cc0

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ Consider the following example with ranges of current week, month and year.
6666
```
6767
$scope.presets = [
6868
{
69-
'name': 'Week',
70-
'start': moment().startOf('week'),
71-
'end': moment().endOf('week'),
69+
'name': 'This Week',
70+
'start': moment().startOf('week').startOf('day'),
71+
'end': moment().endOf('week').endOf('day'),
7272
}, {
73-
'name': 'Month',
74-
'start': moment().startOf('month'),
75-
'end': moment().endOf('month'),
73+
'name': 'This Month',
74+
'start': moment().startOf('month').startOf('day'),
75+
'end': moment().endOf('month').endOf('day'),
7676
}, {
77-
'name': 'Year',
78-
'start': moment().startOf('year'),
79-
'end': moment().endOf('year'),
77+
'name': 'This Year',
78+
'start': moment().startOf('year').startOf('day'),
79+
'end': moment().endOf('year').endOf('day'),
8080
}
8181
];
8282
```

0 commit comments

Comments
 (0)