Skip to content

Commit

Permalink
Set to UTC time
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGreen committed Oct 16, 2024
1 parent 64f1cd4 commit 74dd54c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion class-plugin-autoupdate-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public function filter_enforce_delay( $update, $item ): bool {

// Get the site's date and time format settings.
$datetime_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
$formatted_date = date_i18n( $datetime_format, $delay_date );
// Set the $gmt parameter to true for UTC time
$formatted_date = date_i18n( $datetime_format, $delay_date, true );

// adds message to update notice box for that plugin on the plugins page
add_filter(
Expand Down

0 comments on commit 74dd54c

Please sign in to comment.