core/domain/services/graphql/data/mutations/DatetimeMutation.php 1 location
|
@@ 48-50 (lines=3) @@
|
| 45 |
|
$args['DTT_description'] = sanitize_text_field($input['description']); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
if (! empty($input['startDate'])) { |
| 49 |
|
$args['DTT_EVT_start'] = new DateTime(sanitize_text_field($input['startDate'])); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
if (! empty($input['endDate'])) { |
| 53 |
|
$args['DTT_EVT_end'] = new DateTime(sanitize_text_field($input['endDate'])); |
core/domain/services/graphql/data/mutations/TicketMutation.php 1 location
|
@@ 53-55 (lines=3) @@
|
| 50 |
|
$args['TKT_price'] = floatval($input['price']); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if (! empty($input['startDate'])) { |
| 54 |
|
$args['TKT_start_date'] = new DateTime(sanitize_text_field($input['startDate'])); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if (! empty($input['endDate'])) { |
| 58 |
|
$args['TKT_end_date'] = new DateTime(sanitize_text_field($input['endDate'])); |