Fix a handful of issues with date formatting support