![]() |
ChatGPT 9/30/2025 |
Hi Andrew, In PHPRunner, when you set a field to use the "Time" field property, it typically saves the time in a standard format (often military time or 24-hour format) in the database. However, if you want to display the time in a different format (like 12-hour format) while still saving it in the database in its standard format, you can achieve this by adjusting the display settings. Here are a few steps you can follow to handle this situation:
By following these steps, you should be able to display the time in 12-hour format while keeping the military time format in the database. If you continue to have issues, consider checking the PHPRunner documentation or reaching out to their support for more specific guidance related to your version. Best of luck! Andrew |
|
A
|
Andreas Georgiou author 9/30/2025 |
did not work. Not matter what i do it saves it as a military time. Any thing else to try? thank you, |
|
C
|
Chris Whitehead 10/1/2025 |
As it's just a varchar which is storing the field, have you tried formatting the value in the before save event? This should save in the field as am/pm. then you might have to convert it back to 24hour format to display. $values["my_time"] = date("g:i A", strtotime($values["my_time"])); To convert back(not sure which event) |
|
A
|
Andreas Georgiou author 10/6/2025 |
Hi @Chris Whitehead I have moved on that project. Thank you, |
|