Support » Plugin: WooCommerce » date_i18n() in emails shows date in english

  • Hi,

    I am using the latest version of WP, WC and WPML.
    I wrote a custom plugin to select delivery dates. The chosen date is in the ‘processing order email’. When I use

    <?php echo date_i18n( get_option( 'date_format' ), strtotime( get_post_meta( $order->get_id(), '_shipping_date', true ) ) ); ?>

    in the email, the names of the month are shown in English. All other information is in the right language.

    When I use the same snippet in my functions file, it displays the right language (NL or FR, based on the chosen language).

    Is this a WooCoomerce issue?

    Kind regards,

  • The topic ‘date_i18n() in emails shows date in english’ is closed to new replies.