Fix locale lookup.
Fix date format for editing