Title: Time Zone Updates?
Last modified: August 21, 2016

---

# Time Zone Updates?

 *  Resolved [knappen](https://wordpress.org/support/users/knappen/)
 * (@knappen)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/)
 * Where does BPS pull its date stamp from? We have a WP site with the correct time
   but the login logs are still on daylight savings time. Is BPS pulling time from
   the server? Is there a setting within the plugin I have missed? Thanks!
 * [http://wordpress.org/plugins/bulletproof-security/](http://wordpress.org/plugins/bulletproof-security/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296763)
 * The login-security.php file that processes logins logs the login time in UNIX
   time with the php time(); function.
 * `$login_time = time();`
 * The login.php file/Login Security page pulls the logged UNIX timestamp from your
   DB and then converts it into i18n human time format and factors in the GMT Offset.
   `
   date_i18n(get_option('date_format').' '.get_option('time_format'), $row->login_time
   + $gmt_offset)`
 * If the time is off then check your WordPress Settings >>> General page time settings.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296881)
 * Is this issue/problem resolved? If so, please resolve this Thread. If not, please
   post a status update. Thank you.
 *  Thread Starter [knappen](https://wordpress.org/support/users/knappen/)
 * (@knappen)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296886)
 * Hmmm. Here is some more information.
 *  – local time is showing correctly in WP settings
 *  – local time is showing correctly in the wp_bpspro_login_security table
 *  – _local time within the “Logging Options” panel within the WP dashboard is 
   incorrectly showing daylight savings time_
 *  – _the title on the email “BPS Login Security Alert – Month DD, YYYY – HH:MM
   am” is incorrectly showing daylight savings time_
 *  – local time stamp on the above email “BPS Login…” is showing correctly
 * This is a bit of a curiosity. Any ideas where this might be happening?
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296888)
 * The Login Security table timestamp and the email subject timestamp are using 
   the same time variables/functions and should be exactly the same.
 *     ```
       $timeNow = time();
       $gmt_offset = get_option( 'gmt_offset' ) * 3600;
       $timestamp = date_i18n(get_option('date_format'), strtotime("11/15-1976")) . ' - ' . date_i18n(get_option('time_format'), $timeNow + $gmt_offset);
   
       $subject = " BPS Login Security Alert - $timestamp ";
       ```
   
 * > – local time within the “Logging Options” panel within the WP dashboard is 
   > incorrectly showing daylight savings time
 * What/where is this above?
 * The only logical thing I can think of is another plugin is overriding the BPS
   timestamps. BPS does most things in the backend where other plugins cannot impact
   or affect BPS – except for jQuery menus that get broken by other plugins not 
   containing their jQuery scripts in those plugins. For any frontend things that
   BPS does there are conflicts here and there with other plugins that are not containing
   their scripts to only those plugins. ie the plugin generates a timestamp sitewide
   instead of creating conditions where that timestamp would only relate to whatever
   that plugin is doing with time.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296889)
 * Actually in this particular code/case I do not think another plugin would be 
   involved in this due to how the email is being sent from within a BPS function.
   The only other logical thing I can think of would be time() itself is off on 
   the Server, but the formatting of the time should be correct since the display
   of the time would be your time.
 *  Thread Starter [knappen](https://wordpress.org/support/users/knappen/)
 * (@knappen)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296890)
 * And down the rabbit hole we go. 😉
 * This isn’t a terribly pressing issue but certainly a fun little puzzle to solve.
   I will let you know what I find.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296891)
 * Yep, this should either be occurring with all or none of the BPS timestamp functions
   so that is really strange that any one of the timestamps would be different since
   they are all using the same exact code to get the timestamps. I cannot think 
   of any logical reason for that.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296933)
 * Were you able to figure this issue out?
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296943)
 * Resolving. Server/website specific issue and not global issue.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Time Zone Updates?’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

## Tags

 * [BPS](https://wordpress.org/support/topic-tag/bps/)

 * 9 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/time-zone-updates/#post-4296943)
 * Status: resolved