Skip to:
Content

BuddyPress.org

Changeset 1830 for trunk/bp-xprofile.php


Ignore:
Timestamp:
09/08/2009 10:37:01 PM (16 years ago)
Author:
apeatling
Message:

Switching back to standard date() from date_i8n() for now as it's buggy with dates prior t the 1970 epoch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r1829 r1830  
    330330                if ( isset( $_POST['field_' . $field_id . '_day'] ) ) {
    331331                    /* Concatenate the values. */
    332                     $date_value = $_POST['field_' . $field_id . '_day'] .
    333                                   $_POST['field_' . $field_id . '_month'] .
     332                    $date_value = $_POST['field_' . $field_id . '_day'] . ' ' . 
     333                                  $_POST['field_' . $field_id . '_month'] . ' ' .
    334334                                  $_POST['field_' . $field_id . '_year'];
    335                
     335                       
    336336                    /* Turn the concatenated value into a timestamp */
    337                     $_POST['field_' . $field_id] = strtotime( $date_value );                   
     337                    $_POST['field_' . $field_id] = strtotime( $date_value );
    338338                }
    339339               
Note: See TracChangeset for help on using the changeset viewer.