Skip to content

Commit 65557c0

Browse files
committed
Merge branch 'master' of github.com:g1eb/angular-datetime-range
2 parents e20d12c + 27ff039 commit 65557c0

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

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
```

index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@
3838
$scope.end = moment().add(1, 'days').add(1, 'hours');
3939

4040
$scope.presets = [
41-
{
42-
'name': 'Week',
43-
'start': moment().startOf('week'),
44-
'end': moment().endOf('week'),
45-
}, {
46-
'name': 'Month',
47-
'start': moment().startOf('month'),
48-
'end': moment().endOf('month'),
49-
}, {
50-
'name': 'Year',
51-
'start': moment().startOf('year'),
52-
'end': moment().endOf('year'),
53-
}
41+
{
42+
'name': 'This Week',
43+
'start': moment().startOf('week').startOf('day'),
44+
'end': moment().endOf('week').endOf('day'),
45+
}, {
46+
'name': 'This Month',
47+
'start': moment().startOf('month').startOf('day'),
48+
'end': moment().endOf('month').endOf('day'),
49+
}, {
50+
'name': 'This Year',
51+
'start': moment().startOf('year').startOf('day'),
52+
'end': moment().endOf('year').endOf('day'),
53+
}
5454
];
5555

5656
$scope.changed = function () {

0 commit comments

Comments
 (0)