Metadecidim
Sign in

Process

Co-creating the roadmap 2025–2027

finished not yet on protocol

Use time ago instead of date

Decidim notifications use a system of date (e.g. Mon 13, Tue 22).
I found it weird because when you have old notifications, the date doesn't mean so much to you, you want to know how much time has elapsed since the notification has been emited.

As a user I want to know since when a notification has been emitted.

I suggest that we use Time ago
Describe alternatives you've considered
For a pure js alternative we could use timeago.js

3 comments

  1. In favour

    Nice! I agree. With time ago can we use a time zone for each user who can set it in her control panel?

    0 votes up 0 votes down
  2. In favour

    I already have experience with timeago.js (https://timeago.org/) with DemocracyOS.
    It should be easy to add it to the general Javascript bundle on decidim-core (or maybe with a dynamic JS script based on the Timezone defined in the Rails config).

    If voted, we could take care of the dev with @Armand-OSP ;)

    1 votes up 0 votes down
  3. For reference :
    https://github.com/OpenSourcePolitics/decidim/pull/191

    1 votes up 0 votes down

Sign in with your Atmosphere account to comment.