Fix Clock crash on empty string in timezones field

Also fixed timezones behavior: now waybar starting with the first timezone in timezones list and falling back to timezone field only if timezones omit or has no elements.
This commit is contained in:
Sergey Mishin
2021-10-03 03:27:54 +00:00
parent 8b4dafd701
commit 174db444d6
3 changed files with 22 additions and 12 deletions

View File

@ -24,7 +24,8 @@ The *clock* module displays the current date and time.
*timezone*: ++
typeof: string ++
default: inferred local timezone ++
The timezone to display the time in, e.g. America/New_York.
The timezone to display the time in, e.g. America/New_York. ++
This field will be ignored if *timezones* field is set and have at least one value.
*timezones*: ++
typeof: list of strings ++