Date and Time, Local Zone
-
I’d done ‘add_filter’ in my functions.php passing a format string to show the time too. But it seemed inconsistent, some times local and some times UTC.
In wp-last-login.php I replaced:
$value = date_i18n( $format, $last_login );
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 ok.
Thanks for the great plugin.
- The topic ‘Date and Time, Local Zone’ is closed to new replies.