diff --git a/packages/js/data/changelog/update-data-products-exclude-non-gmt-scheduled-sale b/packages/js/data/changelog/update-data-products-exclude-non-gmt-scheduled-sale new file mode 100644 index 00000000000..1db6a633809 --- /dev/null +++ b/packages/js/data/changelog/update-data-products-exclude-non-gmt-scheduled-sale @@ -0,0 +1,4 @@ +Significance: major +Type: update + +Remove `Product` `date_on_sale_from` and `date_on_sale_to` properties. Use `date_on_sale_from_gmt` and `date_on_sale_to_gmt` instead. diff --git a/packages/js/data/src/products/types.ts b/packages/js/data/src/products/types.ts index d42c781ed12..57da249e4b1 100644 --- a/packages/js/data/src/products/types.ts +++ b/packages/js/data/src/products/types.ts @@ -59,9 +59,7 @@ export type Product< Status = ProductStatus, Type = ProductType > = Omit< description: string; short_description: string; sku: string; - date_on_sale_from: string | null; date_on_sale_from_gmt: string | null; - date_on_sale_to: string | null; date_on_sale_to_gmt: string | null; virtual: boolean; downloadable: boolean;