ソースを参照

Patients list appt. date fix

Vijayakrishnan 4 年 前
コミット
1d03e02f9b
2 ファイル変更3 行追加3 行削除
  1. 1 1
      app/Helpers/helpers.php
  2. 2 2
      resources/views/app/patients.blade.php

+ 1 - 1
app/Helpers/helpers.php

@@ -19,7 +19,7 @@ if(!function_exists('friendly_date_time')) {
         if(!$value || empty($value)) return $default;
         try {
             $result = strtotime($value);
-            $result = date("jS M Y" . ($includeTime ? ", h:ia" : ""), $result);
+            $result = date("m/d/y" . ($includeTime ? ", h:ia" : ""), $result);
             return $result;
         }
         catch (Exception $e) {

+ 2 - 2
resources/views/app/patients.blade.php

@@ -81,7 +81,7 @@
                                     <tr>
                                         <td class="text-black p-0 border-0">
                                             <div class="pb-0">
-                                                {{ friendly_date_time($appointment->raw_start_time, false) }}, {{ friendly_time($appointment->raw_start_time) }}
+                                                {{ friendly_date_time($appointment->start_time, false) }}, {{ friendly_time($appointment->raw_start_time) }}
                                                 <span class="d-inline-block text-secondary text-sm">({{ $appointment->timezone }})</span>
                                                 &nbsp;/&nbsp;
                                                 <b class="mr-1">{{$appointment->pro->displayName()}}</b>
@@ -105,7 +105,7 @@
                     </tr>
                 @endforeach
                 </tbody>
-            
+
             </table>
             <div class="ml-2 mt-2">
              {{$patients->links()}}