File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ( ) {
You can’t perform that action at this time.
0 commit comments