Title: Bug Fix: Pass local date to wpcom_vip_top_posts_array()
Author: WordPress VIP Documentation
Published: September 16, 2020
Last modified: August 5, 2025

---

 1. [Changelog](https://docs.wpvip.com/changelog/)
 2. [VIP MU plugins [Production]](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)
 3. Bug Fix: Pass local date to wpcom_vip_top_posts_array()

# Bug Fix: Pass local date to wpcom_vip_top_posts_array()

---

 16 September 2020

10:00:00 GMT+0000

 [ VIP MU plugins [Production] ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)

 [ Permalink  ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/bug-fix-pass-local-date-to-wpcom_vip_top_posts_array/)

We now set the default `$end_date` param using the site’s local date (rather than
UTC time). Previously, the function could return incorrect data due to the mismatch
in timezones.

https://github.com/Automattic/vip-go-mu-plugins/pull/1756