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
       this.endtime = 0,
13
       this.endtime = 0,
14
       this.timesetter = 0,
14
       this.timesetter = 0,
15
     this.state = {
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
       int2_id : this.props.route.params.int_id,
18
       int2_id : this.props.route.params.int_id,
18
       mapflag: this.props.route.params.mapflag,
19
       mapflag: this.props.route.params.mapflag,
19
       i_token: this.props.route.params.I_Token,
20
       i_token: this.props.route.params.I_Token,
131
     const I_username = this.state.I_username;
132
     const I_username = this.state.I_username;
132
     const u_token = this.state.u_token;
133
     const u_token = this.state.u_token;
133
     const i_token = this.state.i_token;
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
     const _time_ = selectedTime;
137
     const _time_ = selectedTime;
139
     const i_id = this.state.int2_id;
138
     const i_id = this.state.int2_id;
140
     const lat = this.state.pin.latitude; 
139
     const lat = this.state.pin.latitude; 
169
     const I_username = this.state.I_username;
168
     const I_username = this.state.I_username;
170
     const u_token = this.state.u_token;
169
     const u_token = this.state.u_token;
171
     const i_token = this.state.i_token;
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
     const _time_ = selectedTime;
173
     const _time_ = selectedTime;
177
     const i_id = this.state.int2_id;
174
     const i_id = this.state.int2_id;
178
     console.log('Params: ')
175
     console.log('Params: ')
217
         </ImageBackground>
214
         </ImageBackground>
218
       </TouchableWithoutFeedback>
215
       </TouchableWithoutFeedback>
219
     );
216
     );
220
-	}
221
-
217
+  }
222
 }
218
 }
223
 
219
 
220
+
221
+
222
+
223
+