I want to customize "authored on" date format

I don't like "2005-12-09 05:19:31 +0000", all i want is "12-09-2005" tks

Comments

Marc Bijl’s picture

Reading your post, I found this patch:
- http://drupal.org/node/34960

See also these posts (not too much info BTW):
- http://drupal.org/node/12865
- http://drupal.org/node/29579

___________________
discover new oceans
lose sight of the shore

radiofranky’s picture

the date format i mentioned below is automatically inserted when u post a story. Something like this

2005-12-09 12:43:30 +0530

I changed the system.module file and it shows i have the format i want..but somehow it still it shows like above.
Mabye this 2005-12-09 12:43:30 +0530 is coming from somewhere else? tks

radiofranky’s picture

basically i don't want to see the following

Submitted by radiofranky on Fri, 2005-12-09 14:30.
instead I wan to be Fri, 12-09-2005

tks

radiofranky’s picture

Hi,
where should I edit if i want to removed "hour and min"?

tks

Marc Bijl’s picture

Don't have time right now to search extensively at the forum, and can't dig deep into the following link either, but may be this is a good starting point:

- http://drupal.org/node/20356

___________________
discover new oceans
lose sight of the shore

NaX’s picture

I am not sure how exactly you would like to do this.
If you are using PHPTemplate go to

themes/engines/phptemplate/phptemplate.engine Line 291 - 294

I don't like to hack the but this is the place I would start looking.

Also look at your Date settings. administer >> settings (bottom of the page.)

lucidcarbon’s picture

Inside the function node_validate() (which, of course, lives in node.module) is a line that reads something like...

$node->date = format_date($node->created, 'custom', 'd-M-Y H:i:s O');

This is actually post my own edits... it doesn't start out "d-M-Y" But as far as I can tell it just uses the php date function's formatting rules.

This should really be set to be the same as the default format in the settings rather than being hard coded. I hope that's in store for 4.7.