Title: [Plugin: Google Analytics Dashboard] Graph shows wrong dates
Last modified: August 19, 2016

---

# [Plugin: Google Analytics Dashboard] Graph shows wrong dates

 *  Resolved [midwestkel](https://wordpress.org/support/users/midwestkel/)
 * (@midwestkel)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-dashboard-graph-shows-wrong-dates/)
 * I just noticed that the graph is showing the traffic for February but the dates
   are January dates.
 * I figured it’s just a minor bug.

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

 *  [samandjt](https://wordpress.org/support/users/samandjt/)
 * (@samandjt)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-dashboard-graph-shows-wrong-dates/#post-1935445)
 * To me (not an expert), the issue appears to be in gad-data-model.php, line 158:
 * `$current_date=$start_date_ts + (60*60*24*$count);`
 * I believe $start_date_ts is not the correct value, might be a scope issue.
 * I replaced this code with
    `$current_date= time() + (60*60*24*($count-30));`
 * this basically reacalculates $start_date_ts as a part of the $current_date calculation
 *  Plugin Contributor [Carson McDonald](https://wordpress.org/support/users/carson-mcdonald/)
 * (@carson-mcdonald)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-dashboard-graph-shows-wrong-dates/#post-1935462)
 * Thanks, I believe that was it. I have fixed it so that it will be pushed out 
   in the next release. Should be this week.
 *  Plugin Contributor [Carson McDonald](https://wordpress.org/support/users/carson-mcdonald/)
 * (@carson-mcdonald)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-dashboard-graph-shows-wrong-dates/#post-1935484)
 * The new release is out (2.0.3) so I think that should have this fixed. Anyone
   want to verify that it looks good?
 *  Thread Starter [midwestkel](https://wordpress.org/support/users/midwestkel/)
 * (@midwestkel)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-dashboard-graph-shows-wrong-dates/#post-1935487)
 * I just updated last night and can verify that it works and displays the proper
   dates. Thanks for all your hard work!

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

The topic ‘[Plugin: Google Analytics Dashboard] Graph shows wrong dates’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-analytics-dashboard.svg)
 * [Google Analytics Dashboard](https://wordpress.org/plugins/google-analytics-dashboard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-dashboard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-dashboard/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-dashboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-dashboard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-dashboard/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [midwestkel](https://wordpress.org/support/users/midwestkel/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-dashboard-graph-shows-wrong-dates/#post-1935487)
 * Status: resolved