Automattic / woocommerce-payments

Accept payments via credit card. Manage transactions within WordPress.
https://wordpress.org/plugins/woocommerce-payments/
Other
173 stars 69 forks source link

WCPay changes the publish button to Schedule when timezone is other than UTC 0 (Gutenberg Posts/Pages) #4793

Open kaushikasomaiya opened 1 year ago

kaushikasomaiya commented 1 year ago

Describe the bug

https://wordpress.org/support/topic/changes-publish-button-to-schedule-in-gutenberg/#post-16039901

WCPay changes the publish button to "Schedule" while publishing pages or posts when default timezone is other than UTC in WP Settings.

image

To Reproduce

  1. Onboard WCPay in Dev mode
  2. Change default timezone to London
  3. Go to Posts > Add New
  4. Observe the publish button
jessy-p commented 1 year ago

Able to replicate on JN. Note: Just having WCPay installed and active doesn't change the button to "Schedule", once Stripe onboarding is completed, the button is no longer "Publish", but "Schedule". If I change the timezone back to "UTC" it will change back to "Publish"

RadoslavGeorgiev commented 1 year ago

Let's try to get to the root of this issue to ensure that we are not breaking the experience for a lot of merchants.

RadoslavGeorgiev commented 1 year ago

1 SP for investigation, could be increased based on the potential fix.