title: Unable to view timeslots in MAC OS using laravel
body: <p>I am unable to choose a time slot in Mac. In windows, it is working fine.
  I have tried changing the codes in my visual studio.</p>
  <pre><code>$.ajax({
                  type: 'POST',
                  url: '/calendar/read_schedule/'+doctor_id,
                  data: {
                      date: info.event.start.toLocaleDateString(),
                  },
                  success: function(response){
                      console.log(response);
                      if(response.success){
                          $('#add-event select[name=&quot;time-slot&quot;]').html('');
                          let option = document.createElement(&quot;option&quot;);
                          option.value = 0;
                          option.innerHTML = &quot;Pick a time slot&quot;;
                          $('#add-event select[name=&quot;time-slot&quot;]').append(option);
                          
                          response.schedule.forEach(element =&gt; {
                              let option = document.createElement(&quot;option&quot;);
                              option.value = element.id;
  
                              if (time &gt; element.t_start &amp;&amp; date &lt; today)
                                  $(this).prop(&quot;hidden&quot;, true);
  
                              else{
                              option.innerHTML = element.t_start + ' - ' + element.t_end
                              $('#add-event select[name=&quot;time-slot&quot;]').append(option);
      
                              };
                             
                          });
  </code></pre>