Making WordPress.org


Ignore:
Timestamp:
07/24/2019 10:18:01 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Make/Meetings: Reduce the time frame for showing currently ongoing meetings on top of the list from 1 hour to 30 minutes.

Fixes #4594.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php

    r9038 r9078  
    8787                    $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
    8888                    $next  = $start;
    89                     // minus 1 hour to account for currently ongoing meetings
    90                     $now   = new DateTime( '-1 hour' );
     89                    // minus 30 minutes to account for currently ongoing meetings
     90                    $now   = new DateTime( '-30 minutes' );
    9191
    9292                    if ( $next < $now ) {
     
    107107                    $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
    108108                    $next  = $start;
    109                     // minus 1 hour to account for currently ongoing meetings
    110                     $now   = new DateTime( '-1 hour' );
     109                    // minus 30 minutes to account for currently ongoing meetings
     110                    $now   = new DateTime( '-30 minutes' );
    111111
    112112                    while ( $next < $now ) {
     
    124124                    $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
    125125                    $next  = $start;
    126                     // minus 1 hour to account for currently ongoing meetings
    127                     $now   = new DateTime( '-1 hour' );
     126                    // minus 30 minutes to account for currently ongoing meetings
     127                    $now   = new DateTime( '-30 minutes' );
    128128
    129129                    $day_index = date( 'w', strtotime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ) );
     
    151151                    $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
    152152                    $next  = $start;
    153                     // minus 1 hour to account for currently ongoing meetings
    154                     $now   = new DateTime( '-1 hour' );
     153                    // minus 30 minutes to account for currently ongoing meetings
     154                    $now   = new DateTime( '-30 minutes' );
    155155
    156156                    while ( $next < $now ) {
Note: See TracChangeset for help on using the changeset viewer.