Fixed a bug in localized dates