Skip to content

Error displaying when an order was created #358

@Catrya

Description

@Catrya

The time an order was created should be displayed the same regardless of the Mostrod configuration used.
When an order is newly created, it should say: "a moment ago".

Currently, when using the default Mostrod, it displays correctly because that Mostrod uses expiration_hours = 24. However, if I change the Mostrod instance and it uses a different expiration_hours, the app displays it incorrectly.

Image

These orders were created just now and should say just now, but times are wrong

  1. if the instance I'm using uses expiration_hours > 24 hours the app displays the time in the future.
    In this case expiration_hours = 40 it displays "16 hours from now"
Image
  1. if the instance I'm using uses expiration_hours < 24 hours the app displays the time in the past.
    In this case expiration_hours = 20 it displays "4 hours ago"
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions