Closed Timo-Breumelhof closed 3 years ago
When using this in the options:
"publishstartdate": { "type": "date", "picker": { "format": "DD-MM-YYYY HH:mm", "minDate": "2000-01-01", "maxDate": "2099-12-31" } }, "publishenddate": { "type": "date", "picker": { "format": "DD-MM-YYYY HH:mm", "minDate": "2000-01-01", "maxDate": "2099-12-31" } },
The time is ignored by OC and only the date is considered. This seems to be due to these lines:
https://github.com/sachatrauwaen/OpenContent/blob/d76d2b2e05f4bdb7e26f4b5ddd8316ec2c483d62/OpenContent/Components/Handlebars/HandlebarsEngine.cs#L427
https://github.com/sachatrauwaen/OpenContent/blob/d76d2b2e05f4bdb7e26f4b5ddd8316ec2c483d62/OpenContent/Components/Handlebars/HandlebarsEngine.cs#L438
IMO these comparisons should be between publishenddate and DateTime.Now if the time is not 00:00
Fixed in 04.07.00
When using this in the options:
The time is ignored by OC and only the date is considered. This seems to be due to these lines:
https://github.com/sachatrauwaen/OpenContent/blob/d76d2b2e05f4bdb7e26f4b5ddd8316ec2c483d62/OpenContent/Components/Handlebars/HandlebarsEngine.cs#L427
https://github.com/sachatrauwaen/OpenContent/blob/d76d2b2e05f4bdb7e26f4b5ddd8316ec2c483d62/OpenContent/Components/Handlebars/HandlebarsEngine.cs#L438
IMO these comparisons should be between publishenddate and DateTime.Now if the time is not 00:00