User Last Login displays date/time from incorrect timezone
-
To fix the problem, edit the user-last-login.php file and replace:
if ( $last_login ) $value = date_i18n('Y-m-d H:i:s', $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); }
One added benefit to this is that the date and time format will be taken from WordPress’ General configuration options instead of being hard coded.
Best regards,
Michael
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘User Last Login displays date/time from incorrect timezone’ is closed to new replies.