Author Topic: How can i remove the hour from the date?  (Read 2774 times)

0 Members and 1 Guest are viewing this topic.

Offline knsin0

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
How can i remove the hour from the date?
« on: September 23, 2007, 02:47:35 PM »
I would like to remove the hour in the image_date, only want to display day, month and year, which file do i have to edit?  :roll:
« Last Edit: September 23, 2007, 03:06:07 PM by knsin0 »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How can i remove the hour from the date?
« Reply #1 on: September 23, 2007, 03:46:53 PM »
In includes/functions.php file,

find:

Quote
"image_date" => format_date($config['date_format']." ".$config['time_format'],$image_row['image_date']),

replace:

Code: [Select]
"image_date" => format_date($config['date_format'], $image_row['image_date']),
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?