Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

85
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!