Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

86
Vistas
About JS Timezone

I made a supporting plugin for Amelia from a developer before, but I can not contact him now, and there is a small bug for this supporting plugin.

This supporting plugin gets zoom recording from zoom cloud after the meeting ends 30 mins, and displays under the appointment of my site (Change "Join Zoom Meeting" label to "View Recording").

The Bug is if the customer is in a different timezone from the WordPress timezone, then the "Join Zoom Meeting" label already disappeared, so means the customer can not enter the meeting at the start time of the appointment.

Here is the related code, I think.

if ($meeting !== null) {
                    $meeting_start_time = $meeting['start_time'];
            
                    try {
                        $meeting_date = new DateTime($meeting_start_time);
                        $current_date = new DateTime('now', $meeting_date->getTimezone());
                        $time_to_add  = (int) $meeting['duration'] + 30;
                        $meeting_date->add(new DateInterval('PT'.$time_to_add.'M'));
                        $interval = $current_date->diff($meeting_date);
                
                        if ($current_date < $meeting_date) {
                            // meeting didn't happen yet or its happening + 30 minutes
                            $response = [
                                'code'  => 404,
                                'error' => 'Meeting recordings didn\'t start yet'
                            ];
                            echo json_encode($response);
                        } elseif ($interval->days <= 4) {
                            // meeting did happen, check for the recording
                            $hostId             = $meeting['host_email'];
                            $meeting_date_s     = $meeting['start_time'];
                            $meetingId          = $meeting['id'];
                            $meeting_recordings = $this->getZoomMeetingCloudRecordingsByHost($hostId,
                                $meeting_date_s, $meetingId);
                    
                            $records               = [];
                            $view_recording_labels = [
                                __('View Recording', 'amelia-custom-zoom'),
                                __('View Recording 2', 'amelia-custom-zoom'),
                                __('View Recording 3', 'amelia-custom-zoom'),
                                __('View Recording 4', 'amelia-custom-zoom'),
                                __('View Recording 5', 'amelia-custom-zoom'),
                                __('View Recording 6', 'amelia-custom-zoom'),
                                __('View Recording 7', 'amelia-custom-zoom'),
                                __('View Recording 8', 'amelia-custom-zoom'),
                                __('View Recording 9', 'amelia-custom-zoom'),
                                __('View Recording 10', 'amelia-custom-zoom'),
                            ];

Thanks in advance. Anyone can help?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda