Please localize dates, datepickers & time.
-
Hi,
Currently all dates within EDD are being formatted as m/d/Y (USA-only date format), due to hard coding the formatting:For example: “view-order-details.php”, line 108:
<input type="text" name="edd-payment-date" value="<?php echo esc_attr( date( 'm/d/Y', $payment_date ) ); ?>" class="medium-text edd_datepicker"/>
This is really confusing for non-Americans, because “day” and “month” are in reversed order for us. “01/05/2020” means “1st of May” to me. As you can see here, m/d/Y is world-wide uncommon.
Could please update your code so that date outputs and datepickers use the WordPress
get_option('date_format');
?
Else please change it to the international formatting “Y-m-d”.
- The topic ‘Please localize dates, datepickers & time.’ is closed to new replies.