Skip to content

Relative time acting weird #11

@robinttt333

Description

@robinttt333

I am working on a chat application and whenever a new message is created I use the relativeTime
hdate
method to display the relative time since the time of the creation of the message. However, the recently created message acts a bit weird.
For new messages, if I subtract 1 from the seconds I get the desired behaviour but this is a bit hacky.
Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions