Skip to content

Commit 7137144

Browse files
authored
Update Index.html | preset ranges
set preset ranges to start at 00:00:00 and end at 23:59:59
1 parent eac5ee7 commit 7137144

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

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)