Next available shift not working with 24 hour format ( BUG REPORT )

Hi every one.

I was using openemr 5.0.2 (5) and upgraded to 6.0.0 (3). I have an error in the next available shift tab when the time is configured in 24 hour format. When assigning the time from said window, they appear as AM and PM, and if I assign an afternoon time, for example 2 pm, it assigns it as 2 and being in 24 format it stays at 2 in the morning. In version 5 it was assigned directly as 14 hours. I already deleted the smart cashe and nothing. Could it be solved in some way?
EDIT
the same error occurred on both my server and yours. I also tried a clean install of openemr 6.0.0 (3) with the same results.

thank you
best regards

Were you able to fix the error?, i have the same problem.
Regards.
Luis

Hi Luis. I couldn’t fix it. It’s probably a php code error of the pop-up window that puts the time pm as if it were a 24-hour time system, but I have no experience in code. Let’s hope someone fixes it.

Regards

Lorenzo MartĂ­n Lobo MTSAC, FACC, FESC
Especialista Jerarquizado en CardiologĂ­a
Jefe de Dpto Enf. Cardiovasculares y Cardiometabolismo Hospital Militar Campo de Mayo.
Jefe de CardiologĂ­a Hospital Militar Campo de Mayo
Ex Jefe de Unidad Coronaria Hospital Militar Campo de Mayo
Miembro Titular de la Sociedad Argentina de CardiologĂ­a
Fellow American College of Cardiology
Fellow European Society of Cardiology
Ex Miembro del Area de InvestigaciĂłn de la SAC
Ex Director del Consejo de Aterosclerosis y Trombosis de la SAC
Miembro Asesor del Consejo de Aterosclerosis y Trombosis de la SAC
Ex Director del Consejo de EpidemiologĂ­a y PrevenciĂłn Cardiovascular de la SAC
Miembro Asesor del Consejo de EpidemiologĂ­a y PrevenciĂłn Cardiovascular de la SAC
Experto en Lipidos de la Sociedad Argentina de Lipidos.
Miembro de la Sociedad Argentina de Lipidos.
Instructor de ACLS de la American Heart Association

hi, nobody here ? Does anyone know how to fix the error? @brady.miller
Thanks

hi @mlobo4370 , can you change this line to

                $anchor . date("G:i", $utime) . "</a> ";

and check?

1 Like

Tank you @stephenwaite …
Where…?
Edit: Sorry I didn’t see the link

Thank’s @stephenwaite . I tried it and it doesn’t work. the problem seems to be that it inserts the hour of the shift in am/pm format but the configuration in 24 hour format, therefore when selecting the two in the afternoon shift for example (2pm) instead of porner 14 hours puts 2 and says that the professional is not available.
regards

@brady.miller @luisuriarte @stephenwaite The problem will not be in the datetimepicker function?

also edit the line above that line (415) and use G there

echo (strlen(date('G', $utime)) < 2 ? "<span class='invisible'>0</span>" : "") .

finally, change this line to

 f.form_hour.value = hours;
1 Like

@stephenwaite
Thank you so so so much. With those three changes it works perfectly. They should be added to the next patch.
Greetings

1 Like