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

showDate: true does not compute correctly when startDaysAhead: is set #874

Closed
2 tasks done
Some1Elsewhere opened this issue Dec 16, 2022 · 5 comments · Fixed by #1105
Closed
2 tasks done

showDate: true does not compute correctly when startDaysAhead: is set #874

Some1Elsewhere opened this issue Dec 16, 2022 · 5 comments · Fixed by #1105
Labels
released type/feature New feature or request

Comments

@Some1Elsewhere
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When not defining a 'name = null' within the card but referring to 'showDate = True' to populate the header with the current date it will not recalculate while 'startDaysAhead =/ 0'.

For Example ShowDate is True. Today is the 16. Dez. startDaysAhead is set to 2. showDate will not print 18th Dez but will stick to 16th.

Expected behaviour

When ShowDate = True and StartDaysAhead is set to n . ShowDate needs to print Showdate + n to reflect the intendet date.

Steps To Reproduce

No response

Card Version

7.0.1

Home Assistant Version

2022.12.6

Configuration

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Some1Elsewhere Some1Elsewhere added the type/bug Something isn't working label Dec 16, 2022
@github-actions
Copy link

Hello @Some1Elsewhere, thank you for your interest in our work!
If this is a bug report, please provide your configuration and any screenshots that would assist troubleshooting, otherwise we can not help you.

@marksie1988
Copy link
Collaborator

showDate shows the current date, it is not designed to show a date in the future or past.

@Some1Elsewhere
Copy link
Author

@marksie1988 fair enough, but why does showWeekDay then shows not the weekday of today as showDate does but the Date with startDaysAhead + Today?

Isn't there the possibility to add this as a feature for ShowDate? ShowOffsetDate= True ?
It's already there with the weekdays, can't we have this for Date too?

@marksie1988
Copy link
Collaborator

I suppose this is possible yes. Could add it as a feature request. But worth noting I haven't had time to do any work on this for a while, hopefully I get some time next year to get all the current requests nailed.

@marksie1988 marksie1988 reopened this Dec 17, 2022
@marksie1988 marksie1988 added type/feature New feature or request and removed type/bug Something isn't working labels Dec 17, 2022
@github-actions
Copy link

🎉 This issue has been resolved in version 7.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released type/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants