Move date format to admin panel.

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

Post Reply
tmcguire
Posts: 14
Joined: Thu Aug 21, 2008 1:42 pm
Location: Near the kitchen.

Move date format to admin panel.

Post by tmcguire »

It would be nice to have the option to choose how you want your timestamps and dates shown on the site.

For example currently in /inc/functions.php the date is shown as:
return date('Y-m-d H:i', $timestamp); Near line 247

I changed mine to:
return date('M jS Y g:i a', $timestamp);

This is a more common format in the USA as we do not typically use a 24 hour clock.

-Tom
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I decided to use the ISO date format because it is valid all around the world. But an option for displaying dates would be good.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Holgate
Posts: 12
Joined: Tue Jul 12, 2005 4:57 pm

Modify News Date

Post by Holgate »

Could there be plans to include admin control of the posting-date in News editing (and FAQs for that matter)? I have 'old' news and it needs to be modified, but I don't want it date-stamped with current time. It should remain at original date (and original ordering in the archives) or optionally change to a new selected date from a calendar or dropdown in the admin panel.

Love the script, appreciate the work..
Post Reply