| @@ -360,13 +360,16 @@ | ||
| 360 | 360 | string $end_time, |
| 361 | 361 | string $week_day, |
| 362 | 362 | string $custom_date |
| 363 | 363 | ): array { |
| 364 | + $utc_start_time = booktics_time_to_gmt( $start_time, $custom_date ); | |
| 365 | + $utc_end_time = booktics_time_to_gmt( $end_time, $custom_date ); | |
| 366 | + | |
| 364 | 367 | return array( |
| 365 | 368 | 'team_member_id' => $this->team_member_id, |
| 366 | 369 | 'service_id' => $this->service_id, |
| 367 | - 'start_time' => $start_time, | |
| 368 | - 'end_time' => $end_time, | |
| 370 | + 'start_time' => $utc_start_time, | |
| 371 | + 'end_time' => $utc_end_time, | |
| 369 | 372 | 'week_day' => $week_day, |
| 370 | 373 | 'custom_date' => $custom_date, |
| 371 | 374 | ); |
| 372 | 375 | } |