pkissling / clock-weather-card

A Home Assistant Card indicating today's date/time, along with an iOS inspired weather forecast for the next days with animated icons
Other
303 stars 65 forks source link

12 Hour Time Format not working #393

Closed JpsCrazy closed 1 month ago

JpsCrazy commented 1 month ago

Checklist:

Release with the issue: 2.7.0

Last working release (if known): Unknown

Browser and Operating System: Chrome 125.0.6422.113 Firefox 124.0.2 Windows 11

Description of problem: Time only displays in 24h even if time_format: 12 is set. time_format: 12 is a valid option, but does not cause a change. (12 and 24 both result in the card working, while non-accepted values throw an error which is expected.)

Javascript errors shown in the web inspector (if applicable):

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "action-handler-clock-weather" has already been used with this registry
Failure writing uncaught error to system log: Error: Cannot parse given Error object
    at Object.parse (error-stack-parser.js:35:23)
    at stacktrace.js:106:62
    at new Promise (<anonymous>)
    at fromError (stacktrace.js:105:20)
    at t (log-message.ts:37:31)
    at logging-mixin.ts:45:33

Additional information: n/a

pkissling commented 1 month ago

hi @JpsCrazy,

can you please share your full clock-weather-card yaml configuration? i am not able to reproduce the issue you are having

pkissling commented 1 month ago

do you provide a custom time pattern?

JpsCrazy commented 1 month ago

Yes, my time_pattern includes HH which is a 24 hour format... Oops! Thank you for honing in immediately on the issue!