最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

BuddyPress returning incorrect xprofile date

programmeradmin3浏览0评论
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 question

It 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 question

It 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
Add a comment  | 

1 Answer 1

Reset to default 0

I 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.

发布评论

评论列表(0)

  1. 暂无评论