[jan] Fix inconsistent handling of all-day events (Bug #12627).