Skip to content

Commit 34afb74

Browse files
committed
gw-populate-date.php: Fixed a deprecated warning notice.
1 parent 07ed7d1 commit 34afb74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-populate-date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function get_modified_date( $field, $timestamp = false ) {
249249
// If saved in array format, it will not reload the value after conditional viewing/hiding.
250250
$date = "{$hour}:{$minute} {$ampm}";
251251
} elseif ( $this->_args['enable_i18n'] ) {
252-
$date = ( new DateTime() )->setTimestamp( $timestamp )->format( $format );
252+
$date = wp_date( $format, $timestamp );
253253

254254
} else {
255255
$date = date( $format, $timestamp );

0 commit comments

Comments
 (0)