Back to Reports

WooCommerce Analytics Date Picker Fails for Non-English Locales

open Sep 18, 2025 PluginWoocommerce

Summary:

The WooCommerce Analytics date picker has a localization bug that prevents users from entering a custom date range when the site's language is set to anything other than English. The input field rejects the manually typed date, displays a red error border, and shows an incorrect placeholder format.

The root cause is that the date validation logic is not properly localized. It expects the date format used in the English locale (e.g., MM/DD/YYYY), while the interface for other languages (like French) displays a different format (e.g., DD/MM/YYYY) to the user. This mismatch between the displayed format and the validation rules causes the input to be rejected as invalid.

This bug severely impacts the functionality for store administrators in non-English locales, as they are unable to filter analytics reports by a custom date range, limiting their ability to analyze store performance over specific time periods.

How to Replicate:

  1. Set the WordPress site language to a non-English locale (e.g., French).
  2. Navigate to WooCommerce > Analytics.
  3. Click on the date picker and attempt to type a custom date into the input field.
  4. Observe that the field does not accept the input and displays a red error border.