zh-* date format fixed (#423)
This commit is contained in:
parent
87c82ef596
commit
4f0eb49c37
1 changed files with 3 additions and 0 deletions
|
|
@ -912,6 +912,9 @@ func printDay(w weather) (ret []string) {
|
||||||
if config.Lang == "ko" {
|
if config.Lang == "ko" {
|
||||||
dateName = lctime.Strftime("%b %d일 %a", d)
|
dateName = lctime.Strftime("%b %d일 %a", d)
|
||||||
}
|
}
|
||||||
|
if config.Lang == "zh" || config.Lang == "zh-tw" || config.Lang == "zh-cn" {
|
||||||
|
dateName = lctime.Strftime("%b%d日%A", d)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// appendSide := 0
|
// appendSide := 0
|
||||||
// // for utf8.RuneCountInString(dateName) <= dateWidth {
|
// // for utf8.RuneCountInString(dateName) <= dateWidth {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue