Make localized_time test work with different locales settings.