Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gdoc): unstable publication time triggers duplicate Mailchimp new…
…sletter (#2698) Interacting with the gdocs date picker changes the underlying time, in addition to the visible date. This change makes it all the way to the atom feed, which is then interpreted by Mailchimp RSS-to-Email feature as a new article to be sent. This happens in two instances. 1. Interacting with the date picker calendar, e.g. going from Oct 11, to Oct 10 and back to Oct 11: ``` publishedAt Wed Oct 11 2023 00:59:53 GMT+0100 (British Summer Time) publishedAt Tue Oct 10 2023 01:59:53 GMT+0100 (British Summer Time) publishedAt Wed Oct 11 2023 02:59:53 GMT+0100 (British Summer Time) ``` Notice how that third time is now 02:59:53 vs 00:59:53 originally. 2. Pressing the "Today" button sets the time to the current time ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/0SFFiIjKuUK6UPYHVe6u/ae75feef-7dba-48dd-8405-56e0246f08e8/image.png) This PR fixes 1 and removes the "Today" button so that the time remains unchanged from the first publishing event. see https://owid.slack.com/archives/C024KJV3L4D/p1696341737523549, https://owid.slack.com/archives/C024KJV3L4D/p1696431807756709
- Loading branch information