Title: gamelust's Replies | WordPress.org

---

# gamelust

  [  ](https://wordpress.org/support/users/gamelust/)

 *   [Profile](https://wordpress.org/support/users/gamelust/)
 *   [Topics Started](https://wordpress.org/support/users/gamelust/topics/)
 *   [Replies Created](https://wordpress.org/support/users/gamelust/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/gamelust/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/gamelust/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/gamelust/engagements/)
 *   [Favorites](https://wordpress.org/support/users/gamelust/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Need Help: Weird Issue with Timestamps & the Datepicker](https://wordpress.org/support/topic/need-help-weird-issue-with-timestamps-the-datepicker/)
 *  Thread Starter [gamelust](https://wordpress.org/support/users/gamelust/)
 * (@gamelust)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/need-help-weird-issue-with-timestamps-the-datepicker/#post-14860780)
 * Yes, the data in the database is always correct. The only time I run into problems
   is when viewing the post to update it, or when it’s displayed on post type list
   in the back end. Also, as I said before, I tried to see if disabling all plugins
   had any effect, it did not.
 * The thing that really throws me off is that this is not consistent at all. Sometimes
   the dates are correct, other times they’re not. That’s why I’m having trouble
   pinpointing a cause, I can’t find a consistent result or cause.
 * Here’s some screenshots of what I’m running into.
 * [Here’s the back end for the Class post type.](https://gamelust.com/wp-content/uploads/2021/09/Screen-Shot-2021-09-10-at-8.55.52-PM.png)
 * [Picture of the metaboxes on an individual class which has bad dates in the date picker.](https://gamelust.com/wp-content/uploads/2021/09/Screen-Shot-2021-09-10-at-8.55.20-PM.png)
 * [Lastly, a picture of the database meta entry for _cmb_class_start_date with the same post_id as previous image.](https://gamelust.com/wp-content/uploads/2021/09/Screen-Shot-2021-09-10-at-8.53.07-PM.png)
 * Not sure if any of this sheds any light on what may be happening here.
 * Could it be the sheer volume of meta data this site generates? They delete the
   entire schedule and re-upload a new schedule every single day and have done so
   for the past 3+ years.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Need Help: Weird Issue with Timestamps & the Datepicker](https://wordpress.org/support/topic/need-help-weird-issue-with-timestamps-the-datepicker/)
 *  Thread Starter [gamelust](https://wordpress.org/support/users/gamelust/)
 * (@gamelust)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/need-help-weird-issue-with-timestamps-the-datepicker/#post-14860716)
 * Ohh, I wish it were that simple. No, there are quite a bit of metaboxes on this
   site on a wide variety of post types. It was an existing site and this bug quite
   frankly came out of nowhere. Everything had seemed to work fine until the recent
   WordPress upgrades. This particular site has been up for at least 3+ years.
 * I’ve included all the metaboxes that we have created for this particular post
   type into pastebin. Here is the link. [https://pastebin.com/Wj43y8kL](https://pastebin.com/Wj43y8kL)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analyticator] Not working with latest WP](https://wordpress.org/support/topic/not-working-with-latest-wp-2/)
 *  [gamelust](https://wordpress.org/support/users/gamelust/)
 * (@gamelust)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/not-working-with-latest-wp-2/#post-9309312)
 * Problem has nothing to do with your WP version, it was a core change in the GA
   API. The ga:timeOnSite metric was depricated back in April.
 * Metric – ga:timeOnSite – Use ga:sessionDuration instead.
    [GA Core Change Log](https://developers.google.com/analytics/devguides/reporting/core/v2/changelog)
 * In order to fix the chart on the dashboard you’ll need to edit the plug-in.
 * It’s line 454 in google-analytics-summary-widget.php, just replace ga:timeOnSite
   with ga:sessionDuration and it will work again.
 * should look like this…
    `$stats = $this->api->getMetrics('ga:visits,ga:bounces,
   ga:entrances,ga:pageviews,ga:sessionDuration,ga:newVisits', $this->date_before,
   $this->date_yesterday);`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analyticator] PHP fatal errors](https://wordpress.org/support/topic/php-fatal-errors-4/)
 *  [gamelust](https://wordpress.org/support/users/gamelust/)
 * (@gamelust)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-errors-4/#post-9309306)
 * The ga:timeOnSite metric was depricated back in April.
 * Metric – ga:timeOnSite – Use ga:sessionDuration instead.
    [GA Core Change Log](https://developers.google.com/analytics/devguides/reporting/core/v2/changelog)
 * In order to fix the chart on the dashboard you’ll need to edit the plug-in.
 * It’s line 454 in google-analytics-summary-widget.php, just replace ga:timeOnSite
   with ga:sessionDuration and it will work again.
 * should look like this…
    `$stats = $this->api->getMetrics('ga:visits,ga:bounces,
   ga:entrances,ga:pageviews,ga:sessionDuration,ga:newVisits', $this->date_before,
   $this->date_yesterday);`
    -  This reply was modified 9 years, 1 month ago by [gamelust](https://wordpress.org/support/users/gamelust/).

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