Tasks: due date says "today" even though it's tomorrow
Closed this issue · 2 comments
sohkai commented
E.g. if you go to https://court.aragon.org/dashboard or https://court.aragon.org/tasks today, you'll see:
There's more than one day remaining so it's a bit odd it says "today". Given that "today" is also very subjective, I wonder if it's better to say "in the next day" until we get closer, e.g. less than 12 hours (or we use the browser's local time zone to check if the end date is actually in the same day as the person)?
Spec:
- If end date is in the same day (as the browser's time zone), say "today"
- If end date is the next day, say "in the next day"
- Otherwise, say "in X days"
rperez89 commented
Could we use this? https://day.js.org/docs/en/display/to
sohkai commented
I'd be against adding a dayjs plugin just to do this, especially since we only care about the granularity of a few hours (vs. say, years).