Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Date’s bug


Jan M.
Participant

@jotem

Ok, I fired up the debugger to see what could be the problem. Here’s what I found: The problem occurs only if you’re using a translated BP and is caused by the last line of code (bp-xprofile.php):

// Concatenate the values.
$date_value = $_POST['field_' . $group->fields[$j]->id . '_day'] . $_POST['field_' . $group->fields[$j]->id . '_month'] . $_POST['field_' . $group->fields[$j]->id . '_year'];

// Turn the concatenated value into a timestamp
$profile_data->value = strtotime($date_value);

strtotime() expects a date in english language (e.g. 2February2008), but in the translated BP version the month is also translated (e.g. 2Februar2008).

Skip to toolbar