Pārlūkot izejas kodu

Make date format consistent in patient header

Vijayakrishnan Krishnan 4 gadi atpakaļ
vecāks
revīzija
b8208a6967

+ 1 - 1
app/Helpers/helpers.php

@@ -19,7 +19,7 @@ if(!function_exists('friendly_date_time')) {
         if(!$value || empty($value)) return "-";
         try {
             $result = strtotime($value);
-            $result = date("j M o" . ($includeTime ? ", H:i" : ""), $result);
+            $result = date("jS M o" . ($includeTime ? ", H:i" : ""), $result);
             return $result;
         }
         catch (Exception $e) {

+ 1 - 1
resources/views/layouts/patient.blade.php

@@ -112,7 +112,7 @@
                                         <i class=chart>[#{{$patient->chart_number}}]</i>
                                     </div>
                                     <div class=separators>
-                                        <div>{{$patient->dob}} ({{$patient->age_in_years}} y.o {{$patient->sex}})</div>
+                                        <div>{{friendly_date_time($patient->dob, false)}} ({{$patient->age_in_years}} y.o {{$patient->sex}})</div>
                                         <div>
                                             <label>MCN:</label>
                                             @if($patient->was_medicare_validation_successful)