Hi,
I have created a forum and have just added a time field in the database so that when i message is written the time is recorded and then can be displayed back next to the message title. This all works apart from the AM PM part. I have just tested it out, the time was 1:31:32 PM but the time displayed on the web page was 1:31:32 AM. I have used a simple {time field} = time() line of code when inserting it into the database. Now how can i sort this out ? I assume that the time function uses the 24 hour clock. I am really stuck. The database that is being used is MySQL with a field type of TIME (00:00:00) - which i would have assumed would just work.
Thanks in advance,
Chris
I have created a forum and have just added a time field in the database so that when i message is written the time is recorded and then can be displayed back next to the message title. This all works apart from the AM PM part. I have just tested it out, the time was 1:31:32 PM but the time displayed on the web page was 1:31:32 AM. I have used a simple {time field} = time() line of code when inserting it into the database. Now how can i sort this out ? I assume that the time function uses the 24 hour clock. I am really stuck. The database that is being used is MySQL with a field type of TIME (00:00:00) - which i would have assumed would just work.
Thanks in advance,
Chris