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

Calendar: Absolute dates do not show absolute even if getRelative and urgency are set to zero #1373

Merged
merged 2 commits into from
Aug 16, 2018

Conversation

jannekalliola
Copy link
Contributor

Calendar module shows upcoming events with relative "today" and "tomorrow" even if the config defines all dates to be absolute - with the following configuration parameters:

getRelative: 0
timeFormat: "absolute"
urgency: 0

This patch adds an extra if to check whether timeFormat is absolute for events closer than 48 hours.

Further, it might make sense to refactor the whole time formatting function, as it has checks against both configurable and non-configurable values, and it uses different set of conditions for full day events and events with time frame.

@MichMich MichMich merged commit b13d0aa into MagicMirrorOrg:develop Aug 16, 2018
@MichMich
Copy link
Collaborator

Thanks! :)

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

Successfully merging this pull request may close these issues.

2 participants