Remove some extraneous comments and clear up some logic.
Use locales for date/time formatting instead of hardcoded format strings.