Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

wpForo 1.x.x [Solved] Date Format

7 Posts
2 Users
0 Reactions
1,182 Views
Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 6 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: 5483
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Ok please wait a bit.

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

4 Replies
(@hshah)
Joined: 6 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: 8 years ago

Support Team
Posts: 5483

@hshah,

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

(@hshah)
Joined: 6 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: 8 years ago

Support Team
Posts: 5483

@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: 6 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>