Browse Source

Arreglo de entrega de fecha

gilberto.cancel 2 years ago
parent
commit
8ad2394f15
1 changed files with 11 additions and 11 deletions
  1. 11
    11
      screens/main/StateTime.js

+ 11
- 11
screens/main/StateTime.js View File

@@ -13,7 +13,8 @@ export default class Time extends Component{
13 13
       this.endtime = 0,
14 14
       this.timesetter = 0,
15 15
     this.state = {
16
-      Appointment : this.props.route.params.Appointment,
16
+      Day : this.props.route.params.Day,
17
+      Month: this.props.route.params.Month,
17 18
       int2_id : this.props.route.params.int_id,
18 19
       mapflag: this.props.route.params.mapflag,
19 20
       i_token: this.props.route.params.I_Token,
@@ -131,10 +132,8 @@ export default class Time extends Component{
131 132
     const I_username = this.state.I_username;
132 133
     const u_token = this.state.u_token;
133 134
     const i_token = this.state.i_token;
134
-    const date = this.state.Appointment
135
-    const month = date.getMonth() + 1;
136
-    console.log("Month: ", month)
137
-    const day = date.getDate();
135
+    const month = this.state.Month;
136
+    const day = this.state.Day;
138 137
     const _time_ = selectedTime;
139 138
     const i_id = this.state.int2_id;
140 139
     const lat = this.state.pin.latitude; 
@@ -169,10 +168,8 @@ export default class Time extends Component{
169 168
     const I_username = this.state.I_username;
170 169
     const u_token = this.state.u_token;
171 170
     const i_token = this.state.i_token;
172
-    const date = this.state.Appointment
173
-    const month = date.getMonth() + 1;
174
-    console.log("Month: ", month)
175
-    const day = date.getDate();
171
+    const month = this.state.Month;
172
+    const day = this.state.Day;
176 173
     const _time_ = selectedTime;
177 174
     const i_id = this.state.int2_id;
178 175
     console.log('Params: ')
@@ -217,7 +214,10 @@ export default class Time extends Component{
217 214
         </ImageBackground>
218 215
       </TouchableWithoutFeedback>
219 216
     );
220
-	}
221
-
217
+  }
222 218
 }
223 219
 
220
+
221
+
222
+
223
+