|
@@ 2994-2997 (lines=4) @@
|
| 2991 |
|
// Date fields. |
| 2992 |
|
$current_value = $pod->raw( $field ); |
| 2993 |
|
|
| 2994 |
|
if ( 0 < strlen( $current_value ) ) { |
| 2995 |
|
$value = strtotime( $value, strtotime( $current_value ) ); |
| 2996 |
|
} else { |
| 2997 |
|
$value = strtotime( $value ); |
| 2998 |
|
} |
| 2999 |
|
} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::text_field_types(), true ) ) { |
| 3000 |
|
// Text fields. |
|
@@ 3136-3141 (lines=6) @@
|
| 3133 |
|
|
| 3134 |
|
$current_value = $pod->raw( $field ); |
| 3135 |
|
|
| 3136 |
|
if ( 0 < strlen( $current_value ) ) { |
| 3137 |
|
$value = strtotime( $value, strtotime( $current_value ) ); |
| 3138 |
|
} else { |
| 3139 |
|
$value = strtotime( $value ); |
| 3140 |
|
} |
| 3141 |
|
|
| 3142 |
|
$value = date_i18n( 'Y-m-d h:i:s', $value ); |
| 3143 |
|
}//end if |
| 3144 |
|
|