ÇI second this question. It’s not using the timezone from the settings so the information is confuse 🙁
I was having the same issue. Just found this from another post a year ago…
https://wordpress.org/support/topic/date-and-time-local-zone
In the file “wp-last-login.php” replace:
$value = date_i18n( $format, $last_login );
(Note; can be found at line 131)
with
$value = get_date_from_gmt( date( 'Y-m-d H:i:s', $last_login ), get_option( 'date_format' ) ) . "<br/>" . get_date_from_gmt( date( 'Y-m-d H:i:s', $last_login ), get_option( 'time_format' ) );
Seems to work alright.
Nice, should be merged into a new release 🙂
An alternative way of resolving the issue in wp-last-login.php…
Replace:
if ( $last_login ) {
$format = apply_filters( ‘wpll_date_format’, get_option( ‘date_format’ ) );
$value = date_i18n( $format, $last_login );
}
With:
if ( $last_login ) {
$format = apply_filters( ‘wpll_date_format’, get_option( ‘date_format’ ).’ @ ‘.get_option( ‘time_format’ ));
$value = get_date_from_gmt(date_i18n(‘Y-m-d H:i:s’, $last_login ), $format);
}
This will not only cause the date to appear relative to the WordPress timezone but also display the time of the last login.
Best regards,
Michael Milette