Add setlocale, and change date_format to match strftime requirements