nextcloud-vue icon indicating copy to clipboard operation
nextcloud-vue copied to clipboard

Improve Moment.vue, e.g. to get short timestamps

Open GretaD opened this issue 3 years ago • 2 comments

To show the time in different apps, we use Moment.vue, which we create "locally" for a certain app. We dont have a general component for that. Would be nice if we have a nc/vue component and also to improve a bit the way we show the time/year.

Considering other clients out there, we do it a bit differently. We show minutes, hours, years as a full word.

Would be nice if we only show m for minutes, and then hours as h, maybe up to 5h or 10h and then we show the exact time instead of counting 24h. For the previews day, we show date and month (i.e Jul 6) and for year ( 11/04/2020 )

GretaD avatar Jul 07 '21 09:07 GretaD

@marcoambrosini this is what we talked about regarding timestamps. :)

jancborchardt avatar Aug 03 '22 11:08 jancborchardt

Moment is deprecated but we could definitely have our own component for this or find some other library and create our own wrapper.

marcoambrosini avatar Aug 03 '22 12:08 marcoambrosini

Sounds like #13 ?

susnux avatar Jun 15 '23 13:06 susnux

Sounds like #13 ?

its similar yes, but this one is mostly for the design of the timestamps, while the 13 one is more technical. We can merge it if we think its better

GretaD avatar Jun 19 '23 09:06 GretaD