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

On 4.1.0, states/attributes that are string formatted dates are not being formatted at all #142

Closed
SaifAqqad opened this issue Nov 13, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@SaifAqqad
Copy link

So basically, if an entity's state or attribute is a string formatted date like: 2020-11-13 17:38:33, and I use format: relative or any other format type, that string is just returned as is instead of making a new Date object with it.

I think it has to do with this line

@benct benct added the bug Something isn't working label Nov 13, 2020
@ildar170975
Copy link

I have to confirm the problem.
On my setup:

        secondary_info:
          entity: device_tracker.life360_somebody
          name: false
          attribute: last_seen
          format: relative

Now it looks like this:
изображение

@ktownsend-personal
Copy link

I just noticed this problem too. I'm using format: relative but the display is 2020-11-17T06:30:00

@firestrife23
Copy link

confirmed

@Pendora2017
Copy link

same

@benct
Copy link
Owner

benct commented Nov 16, 2020

Should be fixed in v4.1.1.

@benct benct closed this as completed Nov 16, 2020
@ktownsend-personal
Copy link

Thanks! Confirmed fixed 👍

@ildar170975
Copy link

Yes, fixed! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants