environment: Remove toLocaleFormat and add dateUtils for date formatting
Also migrate formatTime and formatTimeSpan to dateUtils.
Splitting this out given the changes are now more substantial.
This brings the various date "format" utilities into a single file and updates their logic to always use the cached local timezone.