Title: Timezone not respected &#8211; wrong date
Last modified: March 17, 2021

---

# Timezone not respected – wrong date

 *  Resolved [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/timezone-not-respected-wrong-date/)
 * When a login here (GMT +1) happens just after midnight, the displayed date is
   the date before.
 * The plugin saves `time()` in the user meta, and in WordPress this means GMT. 
   When displayed the timestamp is regarded local. Suggest this change:
 * `$value = get_date_from_gmt( date( 'Y-m-d H:i:s', $last_login ), get_option( '
   date_format' ) );`
 * in the `manage_users_custom_column` filter.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Konstantin Obenland](https://wordpress.org/support/users/obenland/)
 * (@obenland)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/timezone-not-respected-wrong-date/#post-14600887)
 * [This should be improved now](https://plugins.trac.wordpress.org/changeset/2554786)
   with version 4.
 * Thanks for suggesting the change!

Viewing 1 replies (of 1 total)

The topic ‘Timezone not respected – wrong date’ is closed to new replies.

 * ![](https://ps.w.org/wp-last-login/assets/icon.svg?rev=3527809)
 * [WP Last Login](https://wordpress.org/plugins/wp-last-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-last-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-last-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-last-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-last-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-last-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Konstantin Obenland](https://wordpress.org/support/users/obenland/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/timezone-not-respected-wrong-date/#post-14600887)
 * Status: resolved