Changeset 9038 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php
- Timestamp:
- 07/11/2019 01:39:47 AM (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
r9037 r9038 87 87 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 88 88 $next = $start; 89 $now = new DateTime(); 89 // minus 1 hour to account for currently ongoing meetings 90 $now = new DateTime( '-1 hour' ); 90 91 91 92 if ( $next < $now ) { … … 106 107 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 107 108 $next = $start; 108 $now = new DateTime(); 109 // minus 1 hour to account for currently ongoing meetings 110 $now = new DateTime( '-1 hour' ); 109 111 110 112 while ( $next < $now ) { … … 122 124 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 123 125 $next = $start; 124 $now = new DateTime(); 126 // minus 1 hour to account for currently ongoing meetings 127 $now = new DateTime( '-1 hour' ); 125 128 126 129 $day_index = date( 'w', strtotime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ) ); … … 148 151 $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ); 149 152 $next = $start; 150 $now = new DateTime(); 153 // minus 1 hour to account for currently ongoing meetings 154 $now = new DateTime( '-1 hour' ); 151 155 152 156 while ( $next < $now ) {
Note: See TracChangeset
for help on using the changeset viewer.