Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time is displayed wrong: "24:15" #198

Closed
ildar170975 opened this issue Jul 7, 2021 · 5 comments
Closed

Time is displayed wrong: "24:15" #198

ildar170975 opened this issue Jul 7, 2021 · 5 comments

Comments

@ildar170975
Copy link

ildar170975 commented Jul 7, 2021

When displaying a datetime value like "00:15" with "format: datetime", it is displayed as "24:15".
Original value is "'2021-07-06T21:15:02+00:00'" (= 00:15 in GMT+3).

  - type: custom:multiple-entity-row
    entity: device_tracker.life360_iphone_ira
    entities:
      - entity: device_tracker.life360_iphone_ira
        attribute: at_loc_since
        name: false
        format: datetime
    show_state: false
    secondary_info:
      entity: device_tracker.life360_iphone_ira
      attribute: at_loc_since
      name: false
      format: datetime

image

@ildar170975
Copy link
Author

Probably related to this: home-assistant/frontend#9379

@ildar170975
Copy link
Author

ildar170975 commented Oct 18, 2021

Seems to be solved:
image
2021.10.2

@ildar170975
Copy link
Author

2023.4.4
Time is still displayed wrong:

  - type: entities
    entities:
      - input_datetime.test_datetime
      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: input_datetime.test_datetime
            name: time
        show_state: false
        secondary_info:
          entity: input_datetime.test_datetime
          name: ' '

image

@ildar170975 ildar170975 reopened this Apr 18, 2023
@ildar170975
Copy link
Author

2024.2.1
4.5.0
The glitch seems to appear only if format: datetime is defined:

  - type: entities
    entities:
      - input_datetime.test_datetime

      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: input_datetime.test_datetime
        show_state: false
        secondary_info:
          entity: input_datetime.test_datetime
          name: false

      - type: custom:multiple-entity-row
        entity: input_datetime.test_datetime
        entities:
          - entity: input_datetime.test_datetime
            format: datetime
        show_state: false
        secondary_info:
          entity: input_datetime.test_datetime
          name: false
          format: datetime

image

@ildar170975
Copy link
Author

2024.5
See no issue:

type: entities
entities:
  - input_datetime.test_datetime
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: input_datetime.test_datetime
        name: time
    show_state: false
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: input_datetime.test_datetime
        name: time
        format: datetime
    show_state: false

image

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant