Notifications
Clear all

wpForo 1.x.x [Closed] Date Formating

4 Posts
2 Users
1 Reactions
2,439 Views
Posts: 3
Topic starter
(@ripper)
Active Member
Joined: 6 years ago

Was wondering if there is a way to change the default view of posted date 27/02/2019 11:02 pm to the non traditional view of 27-FEB-2019 11:02 PM?

3 Replies
Posts: 3
Topic starter
(@ripper)
Active Member
Joined: 6 years ago

Found it, well at least there isn't an actual setting, this should be an option to add maybe.  However I edited my post.php page, of course after I enabled it to be used by my theme using the Theme Customization instructions by copying the wpforo theme files to my theme directory.  See instructions here: https://wpforo.com/docs/root/forum-themes/theme-customization/

Sofy
Posts: 4866
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @ripper,

There is another way to do it. Instruction here:

  • Navigate to Dashboard > Forums > Settings > Features admin page, enable the "WordPress Date/Time Format" option
  • Navigate to Dashboard > Settings > General admin page, choose the Custom Date Format option and set it d-M- Y
  • Use the following CSS code to make the characters of the month uppercase
    #wpforo #wpforo-wrap .wpf-right .wpforo-post-content-top > span {
    text-transform: uppercase;
    }

Please don't forget to delete all caches and press CTRL+F5 before checking. 

 

1 Reply
(@ripper)
Joined: 6 years ago

Active Member
Posts: 3

The Date Time that I was referring to was the one listed on the posts page from wpForo, which was hard coded in the theme page itself (post.php):

wpforo_date($post['created'], 'd/m/Y g:i a'); 
wpforo_date($post['created'], 'd-M-Y g:i a');

I changed the top line to the bottom line.