Notifications
Clear all

[Solved] Date Field Type Shows Inconsistent Values

3 Posts
2 Users
0 Likes
632 Views
Posts: 2
Customer
Topic starter
(@taras-melnychenko)
Member
Joined: 3 years ago

We have discovered a very interesting bug that happens to a selected group of members. 

 

On My Account tab, when I change the date of birth field value, on the Profile tab it always displays 1 day earlier compared with the desired set date. When other registered users look at my profile, it shows the correct value.

 

We have tried removing the field and creating a new one, but it didn't help. Your help is highly appreciated.

 

InkedFireShot Capture 1142   starlite – Profile – Pernell Roberts Forum   pernelleroberts.net LI
InkedFireShot Capture 1143   starlite – Account – Pernell Roberts Forum   pernelleroberts.net LI
2 Replies
Kyle
Posts: 728
 Kyle
Admin
(@kylew)
Prominent Member
Joined: 3 years ago

Hi @taras-melnychenko,

Please Follow these steps`

1. Go to wp-content\plugins\wpforo\wpf-includes

2. Open class-forms.php file

3. Find the below code and remove it

$f['value'] = wpforo_date($f['value'], 'date', false);

4. Save the PHP file

5. Clean your website cache and refresh the page in the browser by pressing 2 times Ctrl + F5.

1 Reply
Customer
(@taras-melnychenko)
Joined: 3 years ago

Member
Posts: 2

@kylew Perfect! It worked, thank you.

Share:
Scroll to top