Allow localization of date formating
Typo fix
Save and restore the current locale setting
Fix PSR coding style
Merge pull request #471 from nicolasleon/master

Date formating should be able to cope with locale time format