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

Feature Request: Include Date Formatting in Template Engine #8

Open
MizterB opened this issue Feb 13, 2019 · 0 comments
Open

Feature Request: Include Date Formatting in Template Engine #8

MizterB opened this issue Feb 13, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@MizterB
Copy link

MizterB commented Feb 13, 2019

Per discussion here:

https://community.home-assistant.io/t/custom-secondary-info-for-entities-card/82551/40

parseTemplate() provides flexibility in exposing last_changed, last_updated, and any timestamps that may exist in an entity's attributes. However, timestamps are displayed in ISO18061 format, which is not terribly front-end friendly.

Would it be possible to extend the template parsing engine to allow for custom date formats? Both absolute and relative times would be ideal, possibly following (or using) the examples in Moment.js?

@thomasloven thomasloven added the enhancement New feature or request label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants