how to change the way date is displayed
- Anonymous
- Topic Author
- Visitor
In your new script the date is shown like this: 12/08/05
I cant remeber if i edited soemthing in the add.php script to change the date similar to the first example shown, cant remeber...
Where to chnage the layout of the date so it shown like this: 8th December ??
looking forward to an answer...
Please Log in or Create an account to join the conversation.
Please open the file "add.php" and find the following line:
Replace this line with the old date format line, which used to be:
This will change the date format from the new format to the old format that we used to use.
DigiOz Webmaster
www.digioz.com
Please Log in or Create an account to join the conversation.
- CarlosTheTackle
- Offline
- New Member
- Posts: 2
- Thank you received: 0
how do you adjust the server timezone offset? Or even better, can it be configured to show time/date correct for each user's timezone?
C
Please Log in or Create an account to join the conversation.
CarlosTheTackle wrote: how do you adjust the server timezone offset? ...
Hello Carlos,
It depends what kind of Operating System and Server Software your Web Server is running.
CarlosTheTackle wrote: ... Or even better, can it be configured to show time/date correct for each user's timezone?
Technically you could add a small function to do this calculation for you. But you would have to ask the user first what timezone they are in. So it would be an extra step to view the guestbook. Else, you could add a variable into the config.php file to add a specific number of hours to the post date of the messages. Currently however, the guestbook does not support this feature.
DigiOz Webmaster
www.digioz.com
Please Log in or Create an account to join the conversation.
- CarlosTheTackle
- Offline
- New Member
- Posts: 2
- Thank you received: 0
It's a Linux server, running a standard LAMP config. Public hosting at bluehost.comPete wrote:
CarlosTheTackle wrote: how do you adjust the server timezone offset? ...
Hello Carlos,
It depends what kind of Operating System and Server Software your Web Server is running.
Pete wrote:
CarlosTheTackle wrote: ... Or even better, can it be configured to show time/date correct for each user's timezone?
Technically you could add a small function to do this calculation for you. But you would have to ask the user first what timezone they are in. So it would be an extra step to view the guestbook. Else, you could add a variable into the config.php file to add a specific number of hours to the post date of the messages. Currently however, the guestbook does not support this feature.
Sounds too complicated and unnecessary at this stage.
Thanks heaps for the reply.
Cheers,
Carlos
Please Log in or Create an account to join the conversation.
ferale wrote: (in part said) Where to chnage the layout of the date so it shown like this: 8th December ??
In addition to what Pete has said, you can also add the year which would make the code line in add.php look like this $date = date("H:i, jS F, Y."); there are many many ways to display the date, lots of useful information on the code layout here
www.plus2net.com/php_tutorial/php_date_format.php
Please Log in or Create an account to join the conversation.