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