Skip to content

Commit eec6284

Browse files
Fix bug date time field (#1634)
1 parent 9cf65b4 commit eec6284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/fields/datetime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static function from_save_format( $meta, array $field ): string {
213213
);
214214
$format = $formats[ $field['save_format'] ];
215215
$date = DateTimeImmutable::createFromFormat( $format, $meta );
216-
return false === $date ? $meta : $date->format( $field['php_format'] );
216+
return false === $date ? (string) $meta : $date->format( $field['php_format'] );
217217
}
218218

219219
/**

0 commit comments

Comments
 (0)