Fix date handling and layout issues.