Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionIt was all working fine but all of sudden BuddyPress xprofile date
field giving one date before. However, I have checked in the database and the entry is correct. It is just returning the wrong date.
This means, If I set the date to 1920-12-12 it is storing the correct (the same) but returning 1920-12-11.
I am getting the date using the following BuddyPress function.
// tried by field id
bp_get_profile_field_data([
'field' => 5,
'user_id' => 14
]);
// tried by field name
bp_get_profile_field_data([
'field' => 'Date Of Birth',
'user_id' => 14
]);
Closed. This question is off-topic. It is not currently accepting answers.
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionIt was all working fine but all of sudden BuddyPress xprofile date
field giving one date before. However, I have checked in the database and the entry is correct. It is just returning the wrong date.
This means, If I set the date to 1920-12-12 it is storing the correct (the same) but returning 1920-12-11.
I am getting the date using the following BuddyPress function.
// tried by field id
bp_get_profile_field_data([
'field' => 5,
'user_id' => 14
]);
// tried by field name
bp_get_profile_field_data([
'field' => 'Date Of Birth',
'user_id' => 14
]);
Share
Improve this question
asked Dec 12, 2019 at 7:45
pixelngrainpixelngrain
1,3901 gold badge23 silver badges50 bronze badges
1 Answer
Reset to default 0I cannot duplicate this issue.
The default BuddyPress xprofile date
field only supports 1956 as the earliest year.
Perhaps the issue lies with whatever code you are using to support years like 1920.