Skip to content

Commit 391dc9c

Browse files
committed
Use wp_date() for formatting commit and last sync dates
1 parent 48bee6e commit 391dc9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

github-to-wordpress-sync.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -947,14 +947,14 @@ class="button button-link-delete gtws-delete-project"
947947
<?php if (!empty($project['commit_date'])): ?>
948948
<div class="gtws-detail-item">
949949
<strong><?php _e('Commit Date:', 'snn'); ?></strong>
950-
<?php echo esc_html(date('F j, Y g:i a', strtotime($project['commit_date']))); ?>
950+
<?php echo esc_html(wp_date('F j, Y g:i a', strtotime($project['commit_date']))); ?>
951951
</div>
952952
<?php endif; ?>
953-
953+
954954
<?php if (!empty($project['last_sync'])): ?>
955955
<div class="gtws-detail-item">
956956
<strong><?php _e('Last Sync:', 'snn'); ?></strong>
957-
<?php echo esc_html(date('F j, Y g:i a', strtotime($project['last_sync']))); ?>
957+
<?php echo esc_html(wp_date('F j, Y g:i a', strtotime($project['last_sync']))); ?>
958958
<?php if (!empty($project['last_sync_commit'])): ?>
959959
<code><?php echo esc_html(substr($project['last_sync_commit'], 0, 7)); ?></code>
960960
<?php endif; ?>

0 commit comments

Comments
 (0)