Villhellm/lovelace-clock-card

Not working for zh_CN

xiaod0510 opened this issue · 0 comments

image image

The Hour Hand did not work for me like above picture 1,and I found the bug is at the line 133 .
You could try it by navigator.language='zh_CN', so maybe the better code is :
var local_hour = parseInt(now.toLocaleString(navigator.language, { hour: '2-digit', hour12: true, timeZone: config.time_zone }).replaceAll(/\D+/g,""));