lovelace-clock-card icon indicating copy to clipboard operation
lovelace-clock-card copied to clipboard

Not working for zh_CN

Open xiaod0510 opened this issue 1 year ago • 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,""));

xiaod0510 avatar Aug 06 '23 12:08 xiaod0510