Replace %m with %_m in date_fmt for Chinese locales.

This is a fix for the problem mentioned in the PR.

PR:	199441
This commit is contained in:
Kevin Lo 2016-09-02 00:27:27 +00:00
parent af4251f3a1
commit 578fb84eb4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305264

View File

@ -243,7 +243,10 @@ sub callback_dtformat {
if ($nl eq 'ja_JP') {
$s =~ s/(> )(%H)/$1%A $2/;
} elsif ($nl eq 'ko_KR' || $nl eq 'zh_TW') {
} elsif ($nl eq 'ko_KR' || $nl eq 'zh_CN' || $nl eq 'zh_TW') {
if ($nl ne 'ko_KR') {
$s =~ s/%m/%_m/;
}
$s =~ s/(> )(%p)/$1%A $2/;
}
$s =~ s/\.,/\./;