AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Date Formating

4 Posts
2 Users
1 Reactions
2,987 Views
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@ripper)
Active Member
Joined: 7 years ago
[#7915]

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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@ripper)
Active Member
Joined: 7 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: 5774
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 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: 7 years ago

Active Member
Posts: 3
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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.


Share: