added support for date localization