Skip to content

Commit

Permalink
Update my-calendar-output.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 15, 2024
1 parent 5f8d6bd commit 9a1fbbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/my-calendar-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ function mc_show_event_template( $content ) {
if ( is_numeric( $event_id ) ) {
$event = mc_get_nearest_event( $event_id, true );
if ( ! $event ) {

return $content;
}
} else {
Expand All @@ -1319,8 +1319,8 @@ function mc_show_event_template( $content ) {
}
}
if ( is_object( $event ) ) {
$date = mc_date( 'Y-m-d', strtotime( $event->occur_begin ), false );
$time = mc_date( 'H:i:00', strtotime( $event->occur_begin ), false );
$date = mc_date( 'Y-m-d', strtotime( $event->occur_begin ), false );
$time = mc_date( 'H:i:00', strtotime( $event->occur_begin ), false );
} else {
return $content;
}
Expand Down

0 comments on commit 9a1fbbf

Please sign in to comment.