WordPress.org

Making WordPress.org

Changeset 7052


Ignore:
Timestamp:
04/06/2018 05:37:59 PM (2 years ago)
Author:
iandunn
Message:

WP15: Pass dates through date_i18n() to localize month names.

Fixes #3552.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/plugins/wp15-meetup-events/wp15-meetup-events.php

    r7037 r7052  
    311311        $utc_datetime = new DateTime( '@' . $utc_timestamp );
    312312        $utc_datetime->setTimezone( new DateTimeZone( $timezone ) );
    313         $formatted_date = $utc_datetime->format( $date_format );
     313
     314        $local_timestamp = strtotime( $utc_datetime->format( $date_format ) );
     315        $formatted_date  = date_i18n( $date_format, $local_timestamp );
    314316    } catch ( Exception $exception ) {
    315317        $formatted_date = '';
Note: See TracChangeset for help on using the changeset viewer.