Changeset 9078 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php
- Timestamp:
- 07/24/2019 10:18:01 PM (5 years ago)
- 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 87 87 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 88 88 $next = $start; 89 // minus 1 hourto account for currently ongoing meetings90 $now = new DateTime( '- 1 hour' );89 // minus 30 minutes to account for currently ongoing meetings 90 $now = new DateTime( '-30 minutes' ); 91 91 92 92 if ( $next < $now ) { … … 107 107 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 108 108 $next = $start; 109 // minus 1 hourto account for currently ongoing meetings110 $now = new DateTime( '- 1 hour' );109 // minus 30 minutes to account for currently ongoing meetings 110 $now = new DateTime( '-30 minutes' ); 111 111 112 112 while ( $next < $now ) { … … 124 124 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 125 125 $next = $start; 126 // minus 1 hourto account for currently ongoing meetings127 $now = new DateTime( '- 1 hour' );126 // minus 30 minutes to account for currently ongoing meetings 127 $now = new DateTime( '-30 minutes' ); 128 128 129 129 $day_index = date( 'w', strtotime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ) ); … … 151 151 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 152 152 $next = $start; 153 // minus 1 hourto account for currently ongoing meetings154 $now = new DateTime( '- 1 hour' );153 // minus 30 minutes to account for currently ongoing meetings 154 $now = new DateTime( '-30 minutes' ); 155 155 156 156 while ( $next < $now ) {
Note: See TracChangeset
for help on using the changeset viewer.