Notifications
Clear all

wpForo 1.x.x [Solved] Date Format

7 Posts
2 Users
0 Reactions
976 Views
Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 5 years ago

My date was in the wrong format, so I implemented this fix:

https://wpforo.com/community/how-to-and-troubleshooting-2/my-forum-is-stuck-on-the-dd-mm-yyyy-date-format/#post-28945

 

Now the Joined Date for each user also shows the time they joined.  Instead of:

Joined: 2019/08/01

 

It shows:

Joined: 01/08/2019 02:33
 
At least the date format is right, but having the time there is a bit overkill and doesn't look nice.
6 Replies
Sofy
Posts: 4504
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Ok please wait a bit.

We'll check the issue and back to you asap. 

4 Replies
(@hshah)
Joined: 5 years ago

Trusted Member
Posts: 63

@sofy

You can see the issue in the screenshot you sent me earlier today in another thread 🙂

 

https://wpforo.com/community/how-to-and-troubleshooting-2/my-profile-pages-header-alignment/paged/2/#post-29934

Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4504

@hshah,

Could you please change the role of the current user to admin?  

(@hshah)
Joined: 5 years ago

Trusted Member
Posts: 63

@sofy

I just reverted the fix mentioned in the first post, and changed the date format in the profile.php file to say 'd/m/Y' instead.  

 

It looks good now 🙂

Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4504

@hshah

Have you used the update safe way for the changes? 

Please follow the guide below: 

https://wpforo.com/docs/root/forum-themes/theme-customization/

Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 5 years ago

Actually, I noticed in the profile.php file, the format for the Joined Date is hard coded.  It should be dynamic based on the options selected.

<div class="profile-stat-data-item"><?php wpforo_phrase('Joined') ?>: <?php wpforo_date($user_registered, 'Y/m/d') ?></div>