dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] Widget: clock Issue: Not displaying 24 hour clock

Open instantdreams opened this issue 2 years ago β€’ 11 comments

Environment

Self-Hosted (Docker)

System

Debian 5.18.2-1 (2022-06-06) x86_64 GNU/Linux, Docker Engine v24.0.2, Docker Compose v2.18.1, Firefox 114.0

Version

Dashy V-2.1.1

Describe the problem

My conf.yml contains the following snippet:

- name: Time
  icon: far fa-clock
  widgets:
  - type: clock
    options:
      timeZone: America/Edmonton
      format: en-CA
      use12Hour: false
      hideDate: false

I expected the time to be displayed in 24 hour format, but instead I get the time with AM/PM displayed: image

Additional info

My Dashy log file shows no other issues (apart from linking to a locally accessible logo file):

$ docker compose logs
dashy  | yarn run v1.22.15
dashy  | $ node server
dashy  |
dashy  | Checking config file against schema...
dashy  |
dashy  | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
dashy  |   Warning: 1 issue found in config file
dashy  | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
dashy  | 1. /pageInfo/logo must match pattern "^(http|/)(.*?)"
dashy  |
dashy  | SSL Not Enabled: Public key not present
dashy  |
dashy  |
dashy  |  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—
dashy  |  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•
dashy  |  β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
dashy  |  β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘  β•šβ–ˆβ–ˆβ•”β•
dashy  |  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘
dashy  |  β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•   β•šβ•β•
dashy  |
dashy  | *******************************************************************************************
dashy  | Welcome to Dashy! πŸš€
dashy  | Your new dashboard is now up and running with Docker
dashy  | *******************************************************************************************
dashy  |
dashy  |
dashy  | Using Dashy V-2.1.1. Update Check Complete
dashy  | βœ… Dashy is Up-to-Date
dashy  |

Thank you!

Please tick the boxes

instantdreams avatar Jun 13 '23 15:06 instantdreams

If you're enjoying Dashy, consider dropping us a ⭐
πŸ€– I'm a bot, and this message was automated

liss-bot avatar Jun 13 '23 15:06 liss-bot

Hi That really is strange, could you try format: en-DE ? that replaces the time format with german in english, the timezone will still be edmonton.

CrazyWolf13 avatar Jun 23 '23 14:06 CrazyWolf13

That worked! image

However, I would expect the use12Hour tag to override anything else. Odd, as you noted.

instantdreams avatar Jun 23 '23 21:06 instantdreams

That worked! image

However, I would expect the use12Hour tag to override anything else. Odd, as you noted.

GreatπŸ‘ Yeah, I also have no clue why dashy behaves like this. But I think for the moment this is the best solution.

CrazyWolf13 avatar Jun 23 '23 21:06 CrazyWolf13

This issue has gone 3 months without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Sep 23 '23 01:09 liss-bot

The use12hour flag is not working as intended.

instantdreams avatar Sep 23 '23 13:09 instantdreams

This issue has gone 3 months without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Dec 23 '23 01:12 liss-bot

Still relevant

CrazyWolf13 avatar Dec 23 '23 06:12 CrazyWolf13