@sdetweil said in Calendar Module: 46 minutes = "in 1 hour": How to change the way relative time is shown?:
timeThreshold: {unit:minutes,limit:55},
Thank you, I have tried your code and will keep trying to get it to work.
@sdetweil said in Calendar Module: 46 minutes = "in 1 hour": How to change the way relative time is shown?:
timeThreshold: {unit:minutes,limit:55},
Thank you, I have tried your code and will keep trying to get it to work.
Appointment starts in X minutes [how can we adjust what is shown? and when it switches from hours to minutes]
I would like to change magic mirror settings to show relative time is displayed in the calendar module.
I have spent 1-2 hours trying things to solve this, seemingly simple, challenge, without a solution yet. Are you able to solve it?
Example:
Current state:
.
Desired behavior:
It seems like this moment setting holds the key, but I haven’t been able to get it to work. (or find the right file location (or setting)to change)
moment.relativeTimeThreshold(‘s’, 40);
“Bonus points” for a solution that shows relative time to work with minutes >60… (example: 90 minutes left or 1h 30m left)
Any help is greatly appreciated!