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

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Date Field Type Shows Inconsistent Values

3 Posts
2 Users
0 Reactions
1,740 Views
Posts: 2
Customer
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
(@taras-melnychenko)
Member
Joined: 5 years ago
[#8675]

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
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
(@kylew)
Prominent Member
Joined: 5 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: 5 years ago

Member
Posts: 2
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

@kylew Perfect! It worked, thank you.


Share:
Scroll to top