Making WordPress.org


Ignore:
Timestamp:
03/25/2020 02:37:51 PM (5 years ago)
Author:
ryelle
Message:

Official WordPress Events: Sync the UTC offset to the database

start_timestamp is a fake UTC value, so we need to sync the real UTC offset to be able to get the real local time. This is a workaround because updating start_timestamp to be real UTC would cause more trouble (in the API, in core widget, etc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-event.php

    r6814 r9632  
    1010class Official_WordPress_Event {
    1111    public $id, $type, $source_id, $status, $title, $url, $description, $num_attendees, $meetup_name, $meetup_url,
    12            $start_timestamp, $end_timestamp, $location, $country_code, $latitude, $longitude;
     12        $start_timestamp, $end_timestamp, $utc_offset, $location, $country_code, $latitude, $longitude;
    1313
    1414    /**
    1515     * Constructor
    16      * 
     16     *
    1717     * @param array $members
    1818     */
Note: See TracChangeset for help on using the changeset viewer.