@@ -58,7 +58,6 @@ angular.module('guacRestrict').controller('timeRestrictionFieldController', ['$s
58
58
* twice - once for the 0-index and once for the 7 index.
59
59
*/
60
60
$scope . weekDays = [
61
- { id : '0' , day : 'Sunday' } ,
62
61
{ id : '1' , day : 'Monday' } ,
63
62
{ id : '2' , day : 'Tuesday' } ,
64
63
{ id : '3' , day : 'Wednesday' } ,
@@ -132,8 +131,16 @@ angular.module('guacRestrict').controller('timeRestrictionFieldController', ['$s
132
131
if ( restrictionRegex . test ( restrArray [ i ] ) ) {
133
132
var currArray = restrArray [ i ] . match ( restrictionRegex ) ;
134
133
let entry = new TimeRestrictionEntry ( ) ;
135
- entry . startTime = new Date ( Date . UTC ( templateDate . getFullYear ( ) , templateDate . getMonth ( ) , templateDate . getDate ( ) , parseInt ( currArray [ 2 ] . slice ( 0 , 2 ) ) , parseInt ( currArray [ 2 ] . slice ( 2 ) ) ) ) ;
136
- entry . endTime = new Date ( Date . UTC ( templateDate . getFullYear ( ) , templateDate . getMonth ( ) , templateDate . getDate ( ) , parseInt ( currArray [ 3 ] . slice ( 0 , 2 ) ) , parseInt ( currArray [ 3 ] . slice ( 2 ) ) ) ) ;
134
+ entry . startTime = new Date ( Date . UTC ( templateDate . getFullYear ( ) ,
135
+ templateDate . getMonth ( ) ,
136
+ templateDate . getDate ( ) ,
137
+ parseInt ( currArray [ 2 ] . slice ( 0 , 2 ) ) ,
138
+ parseInt ( currArray [ 2 ] . slice ( 2 ) ) ) ) ;
139
+ entry . endTime = new Date ( Date . UTC ( templateDate . getFullYear ( ) ,
140
+ templateDate . getMonth ( ) ,
141
+ templateDate . getDate ( ) ,
142
+ parseInt ( currArray [ 3 ] . slice ( 0 , 2 ) ) ,
143
+ parseInt ( currArray [ 3 ] . slice ( 2 ) ) ) ) ;
137
144
var origDay = currArray [ 1 ] ;
138
145
139
146
if ( currArray [ 1 ] === '*' )
0 commit comments