PDA

View Full Version : Attempt to change comment date-time


glloeb
09-10-2006, 03:55 AM
Okay, here is my feeble attempt to change the comment date-time to match the way dates are displayed on the top of my comment pages. From index.php:

new version: $datetime = gmdate("F jS, Y g:i a",time()+(3600 * $cfgrow['timezone'])); // current date+time

old version : $datetime = gmdate("Y-m-d H:i:s",time()+(3600 * $cfgrow['timezone']));

The problem is that while the new code is implemented, it still displays the old version of the date. You can check this out yourself here (http://gabrielloeb.com) by clicking on the comment link.

I would appreciate any help I receive in fixing this issue.

Thanks much,
Gabriel Loeb (http://gabrielloeb.com)

Connie
09-10-2006, 08:06 AM
Gabriel,

why not do this in an ADDON?

We do not recommend anymore to hack the files themselves..

GeoS
09-10-2006, 08:58 AM
Why not do it at options where is field for data format ?? :P

glloeb
09-10-2006, 04:41 PM
Thanks you guys, I guess I've gotten so caught up in doing things myself that I forget some of it has been done for me.

Gabriel Loeb (http://gabrielloeb.com)