This topic is locked

Datetime field, switching AM and PM?

12/15/2006 3:58:11 PM
PHPRunner General questions
Q
Quizosde author

I have a datetime field on my add and list pages. On the add page, it is entered in the format: DD/MM/YYYY 00:00:00, so the date followed by 24hr time. Once an entry gets added however, on my list page, phprunner changes it to the date followed by 12 hr time with an am or pm. (On the list page the "view as" settings are set to datetime) Now this would be fine, except for that if the hour is 12, so say an entry gets put in at half past noon , so on the add page DD/MM/YYYY 12:30:00 is entered, once it gets added on the list page it will read as 12:30:00 AM (when it should be PM) And it doesnt seem that its just the way its being viewed, because after that, if you go to edit that post the time will say DD/MM/YYYY 00:30:00. So the entry actually gets changed.
I'm totally lost here, any ideas?
Thanks!

Alexey admin 12/18/2006

Hi,
PHPRunner uses system default time format.

To change to 24-hour time you can change to English(UK)regional settings on the Miscellaneous tab in PHPRunner.
Or you can modify generated include\locale.php file for this.

Find this line there:

$locale_info["LOCALE_STIMEFORMAT"]="h:mm:ss tt";

and replace it with:

$locale_info["LOCALE_STIMEFORMAT"]="H:mm:ss";