• First of all, I love this plugin (thank you). I am using version 2.0.2 as of this posting.

    I was curious what might be causing this. I have a site installed on its own server (Ubuntu 16.04.2; Nginx 1.10.0; 5.6.27 (I had no choice here); PHP 7.0.16). I have the git (2.7.4 from Ubuntu) repo installed locally. Everything works fine on the git end and with Revisr except one small thing:

    In WP admin, when I click Revisr > Commits, the “Date” column is always 6 hours behind the actual time that it was committed (for example, if I were to commit something right now, it would say that I did 6 hours ago instead of “x minutes ago” in Revisr > Commits).

    Any idea why this is or how to fix it? Notes:

    1. Correlation: My timezone is U.S. Central Time, which is GMT-0600. Obviously not a coincidence. It’s as if the offset is being subtracted twice from GMT in the date column.
    2. I checked the system time (date), timezone (cat /etc/timezone) and GMT offset (date +%z). They are all as they should be.
    3. I checked the time/zone/offset in PHP [date(‘h:i:sa O e’)] under the same vhost as WP/Revisr is running, and they are correct.
    4. I ran ‘git log’ to view my commits, and the date/time/zones are correct there as well, so git appears to be adhering to the system time+zone correctly.

    I just can’t figure it out. Everything appears to be correct (system/git/PHP).

    Has anyone else run into this? It’s not mission critical, but sort of annoying. When I have time, I will upgrade git to a newer version (despite it appearing to be working correctly). I’m just using the one from the Xenial apt repo right now.

    Thank you,
    Daniel

    • This topic was modified 7 years, 8 months ago by Daniel Hendricks. Reason: Fixed typo; added git version note
  • The topic ‘Issue: Incorrect Commit Time Display’ is closed to new replies.