We have an import job that creates variants and products. Some products are old and have a StartPublish date like 2001-03-01. When this product is synced we set StopPublish to null but then Commerce sets StopPublish to StartPublish + 10 years. Why is that? Should this be considered a bug?
Not exactly a bug, per se. StopPublish can be null, but EndDate is not, so when you are saving a catalog content without StopPublish, Commerce has to set EndDate to something, and that was chosen to be StartPublish + 10 years. This is not perfect but it works in a majority of cases, and quite reasonable if you ask me.
The obvious workaround is to set the StopPublish to some value that you are happy with.
Ok by me. Then I now how it works. Thanks!