Making WordPress.org

Changeset 14478


Ignore:
Timestamp:
07/01/2025 05:48:36 AM (5 weeks ago)
Author:
dd32
Message:

API: Events: Set a specific time & proper GMT offset for WCUS. This resolves WCUS showing as Aug 25-28 instead of Aug 26-29 depending on the local browsers timezone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r14433 r14478  
    11881188                'meetup'     => '',
    11891189                'meetup_url' => '',
    1190                 'date'       => '2025-08-26 00:00:00',
    1191                 'end_date'   => '2025-08-29 00:00:00',
    1192                 'start_unix_timestamp' => strtotime( '2025-08-26 00:00:00' ) - 5 * HOUR_IN_SECONDS,
    1193                 'end_unix_timestamp'   => strtotime( '2025-08-29 00:00:00' ) - 5 * HOUR_IN_SECONDS,
     1190                // Local time
     1191                'date'       => '2025-08-26 09:00:00',
     1192                'end_date'   => '2025-08-29 17:00:00',
     1193                // GMT which due to local being GMT-7, GMT is ahead by 7h.
     1194                'start_unix_timestamp' => strtotime( '2025-08-26 09:00:00' ) + 7 * HOUR_IN_SECONDS,
     1195                'end_unix_timestamp'   => strtotime( '2025-08-29 17:00:00' ) + 7 * HOUR_IN_SECONDS,
    11941196
    11951197                'location' => array(
Note: See TracChangeset for help on using the changeset viewer.