Skip to content

Commit

Permalink
refactor: use wordpress backend date format while printing date in ap…
Browse files Browse the repository at this point in the history
…proved and cancelled withdraw request (#663)
  • Loading branch information
saimonh3 authored and sabbir1991 committed Aug 23, 2019
1 parent 75fcbd9 commit a3f65b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/withdraw/approved-request-listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr>
<td><?php echo wc_price( $row->amount ); ?></td>
<td><?php echo esc_html( dokan_withdraw_get_method_title( $row->method ) ); ?></td>
<td><?php echo esc_html( date_i18n( 'M j, Y g:ia', strtotime( $row->date ) ) ); ?></td>
<td><?php echo esc_html( date_i18n( get_option( 'date_format' ), strtotime( $row->date ) ) ); ?></td>
</tr>
<?php } ?>

Expand Down
2 changes: 1 addition & 1 deletion templates/withdraw/cancelled-request-listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<tr>
<td><?php echo wc_price( $row->amount ); ?></td>
<td><?php echo esc_html( dokan_withdraw_get_method_title( $row->method ) ); ?></td>
<td><?php echo esc_html( date_i18n( 'M j, Y g:ia', strtotime( $row->date ) ) ); ?></td>
<td><?php echo esc_html( date_i18n( get_option( 'date_format' ), strtotime( $row->date ) ) ); ?></td>
<td><?php echo wp_kses_post( $row->note ); ?></td>
</tr>
<?php } ?>
Expand Down

0 comments on commit a3f65b1

Please sign in to comment.