Making WordPress.org


Ignore:
Timestamp:
11/21/2022 10:21:08 PM (4 years ago)
Author:
iandunn
Message:

Events: Pin 2022 State of the Word

File:
1 edited

Legend:

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

    r11861 r12256  
    15881588function pin_one_off_events( $events, $current_time ) {
    15891589
    1590         if ( $current_time < strtotime( 'December 17, 2021' ) ) {
    1591                 array_unshift( $events, array(
     1590        if ( $current_time < strtotime( 'December 18, 2022' ) ) {
     1591                $utc_offset = -5 * HOUR_IN_SECONDS;
     1592
     1593                $sotw = array(
    15921594                        'type'                 => 'wordcamp',
    15931595                        'title'                => 'State of the Word',
    1594                         'url'                  => 'https://wordpress.org/news/2021/11/state-of-the-word-2021/',
     1596                        'url'                  => 'https://wordpress.org/news/2022/11/state-of-the-word-2022/',
    15951597                        'meetup'               => '',
    15961598                        'meetup_url'           => '',
    1597                         'date'                 => '2021-12-14 17:00:00',
    1598                         'end_date'             => '2021-12-14 19:00:00',
    1599                         'start_unix_timestamp' => 1639519200,
    1600                         'end_unix_timestamp'   => 1639526400,
     1599                        'date'                 => '2022-12-15 13:00:00',
     1600                        'end_date'             => '2022-12-15 14:30:00',
     1601                        'start_unix_timestamp' => strtotime( '2022-12-15 13:00:00' ) - $utc_offset,
     1602                        'end_unix_timestamp'   => strtotime( '2022-12-15 14:30:00' ) - $utc_offset,
    16011603
    16021604                        'location' => array(
    … …  
    16061608                                'longitude' => -95.36765276500797,
    16071609                        ),
    1608                 ) );
     1610                );
     1611
     1612                array_unshift( $events, $sotw );
    16091613        }
    16101614
Note: See TracChangeset for help on using the changeset viewer.