|
@@ 3008-3011 (lines=4) @@
|
| 3005 |
|
// Date fields. |
| 3006 |
|
$current_value = $pod->raw( $field ); |
| 3007 |
|
|
| 3008 |
|
if ( 0 < strlen( $current_value ) ) { |
| 3009 |
|
$value = strtotime( $value, strtotime( $current_value ) ); |
| 3010 |
|
} else { |
| 3011 |
|
$value = strtotime( $value ); |
| 3012 |
|
} |
| 3013 |
|
} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::text_field_types(), true ) ) { |
| 3014 |
|
// Text fields. |
|
@@ 3150-3155 (lines=6) @@
|
| 3147 |
|
|
| 3148 |
|
$current_value = $pod->raw( $field ); |
| 3149 |
|
|
| 3150 |
|
if ( 0 < strlen( $current_value ) ) { |
| 3151 |
|
$value = strtotime( $value, strtotime( $current_value ) ); |
| 3152 |
|
} else { |
| 3153 |
|
$value = strtotime( $value ); |
| 3154 |
|
} |
| 3155 |
|
|
| 3156 |
|
$value = date_i18n( 'Y-m-d h:i:s', $value ); |
| 3157 |
|
}//end if |
| 3158 |
|
|