lat9:
That's expected behavior for dates in the past, but a featured/special product starting "today" *should *be accepted and recorded.
For the /admin/featured.php, find the statements (2 each) that currently read
$featured_date_available = (date('Y-m-d') < $featured_date_available_raw) ? $featured_date_available_raw : '0001-01-01';
$expires_date = (date('Y-m-d') < $expires_date_raw) ? $expires_date_raw : '0001-01-01';
> and change to
> ```
$featured_date_available = (date('Y-m-d') <[B]=[/B] $featured_date_available_raw) ? $featured_date_available_raw : '0001-01-01';
$expires_date = (date('Y-m-d') <[B]=[/B] $expires_date_raw) ? $expires_date_raw : '0001-01-01';
Similarly, for the /admin/specials.php, find the statements (2 each) that currently read
$specials_date_available = (date('Y-m-d') < $specials_date_available_raw) ? $specials_date_available_raw : '0001-01-01';
$expires_date = (date('Y-m-d') < $expires_date_raw) ? $expires_date_raw : '0001-01-01';
> and change to
> ```
$specials_date_available = (date('Y-m-d') <[B]=[/B] $specials_date_available_raw) ? $specials_date_available_raw : '0001-01-01';
$expires_date = (date('Y-m-d') <[B]=[/B] $expires_date_raw) ? $expires_date_raw : '0001-01-01';
So what about a product itself becoming available today? It too has suffered the same issue as you yourself have previously found out and reported on github.
Technically, today has already passed from a date only record, so what extra benefit is there in making this change?
Why not allow entry of any date, whether current, future or past? Would it not then get "accepted and recorded" as previously stated?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...