The date format conversion to Simplified Chinese fails because the Chinese format returned by ResourceBundle::getLocales ('') in the date conversion code is zh_Hans_CN, and the value of $lang is zh_CN ...