Thomas Bruederli
2013-09-10 52830ea6056dc85d8ffcb0cfb7ead7d70624e109
program/steps/addressbook/save.inc
@@ -77,6 +77,16 @@
  }
  else if (isset($_POST[$fname])) {
    $a_record[$col] = get_input_value($fname, RCUBE_INPUT_POST, true);
    // normalize the submitted date strings
    if ($colprop['type'] == 'date') {
        if ($timestamp = rcube_utils::strtotime($a_record[$col])) {
            $a_record[$col] = date('Y-m-d', $timestamp);
        }
        else {
            unset($a_record[$col]);
        }
    }
  }
}