Fixed bug with localization and date formatting