TIME STAMP ON POST

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
JEFFERY
Posts: 2
Joined: Fri Feb 27, 2015 3:20 pm

TIME STAMP ON POST

Post by JEFFERY »

Script URL:
Version of script: 1.7.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Would it be possible to add a time stamp after the date when comments are posted?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: TIME STAMP ON POST

Post by Klemen »

You need to modify the "date" function arguments.

Open gbook.php and find:

Code: Select all

date(" j, Y")
You can for example change that to:

Code: Select all

date(" j, Y h:i:s A")
That should make new posts appear as
Added: February 27, 2015 05:33:16 PM
You will find a full list of available PHP date format parameter options here:
http://php.net/manual/en/function.date.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
JEFFERY
Posts: 2
Joined: Fri Feb 27, 2015 3:20 pm

Re: TIME STAMP ON POST

Post by JEFFERY »

got it thanks - works perfect
Post Reply