Add setlocale, and change date_format to match strftime requirements
Use strftime instead of date_format
Merge pull request #273 from zessx/patch-1

Use strftime() instead of date_format()