Relative timestamps should be relative

(#1030) Feature Shipped markdown

Problem

Fluxer uses the same timestamps like Discord, but it makes the strange decision to replace relative timestamps (<t:0000000000:R) with something useless. The following message as it appears on both chat apps: <t:1771945200:t> is <t:1771945200:R> Discord: image Fluxer: image

Proposed solution

It should look the same way as it does on Discord. The JavaScript library they're using to get the relative time is called Moment.js, so assuming Fluxer is using it too (and I hope they are rather than reinventing the wheel!) it is as easy as just using the existing function.
  • 554157169-3b2f9211-7ac7-4247-93a0-a6c0d0d638ae.png

    554157169-3b2f9211-7ac7-4247-93a0-a6c0d0d638ae.png

    213×63 | 8 kB

  • 554157383-52814a1f-8713-4d21-b363-0eb131aea043.png

    554157383-52814a1f-8713-4d21-b363-0eb131aea043.png

    295×63 | 9 kB

3 comments

Sign in with Fluxer to comment and vote.
Comment by @Atakku
RexSystem 1 vote originally by @Atakku on GitHub 1 reply
To note, Discord has a flaw in the relative timestamps that doesn't make sense. For example, on discord I have <t:990914400:R> which shows my age incorrectly (it rounds instead of flooring years) image while on Fluxer, im happy with rounding down image
  • 554178869-f8147bbe-6b14-4aa3-bf78-7957cd50d832.png

    554178869-f8147bbe-6b14-4aa3-bf78-7957cd50d832.png

    175×123 | 6 kB

  • 554179369-60297484-cceb-4797-85f1-cd12cdddb0c2.png

    554179369-60297484-cceb-4797-85f1-cd12cdddb0c2.png

    166×30 | 2 kB

Comment by @Chailotl
RexSystem 1 vote originally by @Chailotl on GitHub OP
This is just how the Moment.js library works, and is meant to reflect how people round time. For example, if a date was 24 years and 10 months ago, I would just say "25 years ago".
Comment by @Chailotl
RexSystem 1 vote originally by @Chailotl on GitHub OP
It has now been fixed in the latest update. image
  • 556577960-62a6b086-c41c-417f-8f7b-c757435f9ff6.png

    556577960-62a6b086-c41c-417f-8f7b-c757435f9ff6.png

    268×115 | 10 kB