Skip to content

Commit

Permalink
Merge pull request #384 from eighty20results/patch-6
Browse files Browse the repository at this point in the history
ENH: Use date_i18n() for localized date formats
  • Loading branch information
ideadude committed Oct 19, 2016
2 parents 485d69e + 5ff0b91 commit f56389d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shortcodes/pmpro_account.php
Expand Up @@ -79,7 +79,7 @@ function pmpro_shortcode_account($atts, $content=null, $code="")
<td class="pmpro_account-membership-expiration">
<?php
if($level->enddate)
echo date(get_option('date_format'), $level->enddate);
echo date_i18n(get_option('date_format'), $level->enddate);
else
echo "---";
?>
Expand Down Expand Up @@ -142,7 +142,7 @@ function pmpro_shortcode_account($atts, $content=null, $code="")
$invoice->getMembershipLevel();
?>
<tr id="pmpro_account-invoice-<?php echo $invoice->code; ?>">
<td><a href="<?php echo pmpro_url("invoice", "?invoice=" . $invoice->code)?>"><?php echo date(get_option("date_format"), $invoice->timestamp)?></td>
<td><a href="<?php echo pmpro_url("invoice", "?invoice=" . $invoice->code)?>"><?php echo date_i18n(get_option("date_format"), $invoice->timestamp)?></td>
<td><?php if(!empty($invoice->membership_level)) echo $invoice->membership_level->name; else echo __("N/A", "pmpro");?></td>
<td><?php echo pmpro_formatPrice($invoice->total)?></td>
</tr>
Expand Down Expand Up @@ -180,4 +180,4 @@ function pmpro_shortcode_account($atts, $content=null, $code="")

return $content;
}
add_shortcode('pmpro_account', 'pmpro_shortcode_account');
add_shortcode('pmpro_account', 'pmpro_shortcode_account');

0 comments on commit f56389d

Please sign in to comment.