Skip to main content
ArcBlock Community

Timestamp Precision in Search/Marked History

JM “cryptotestnet” Morales
Support
arcspherebug

Description

In the "Search marked text" or activity history view, items that have just been added are labeled as "0 min. ago." This lacks the precision found in other parts of the app or typical social/utility interfaces, where "Just now" or "X seconds ago" is the standard for immediate actions.

Steps to Reproduce

  1. Open a post (e.g., from Reddit) and highlight/mark a specific word or phrase (e.g., "Problem").
  2. Immediately navigate to the "Search marked text" history list.
  3. Observe the timestamp associated with the most recent entry.

Expected Result

The timestamp should reflect the immediate nature of the action, using labels like "Just now" or "5s ago" to provide accurate feedback to the user.

Actual Result

The list displays "0 min. ago" for all entries created within the last 60 seconds.

Suggested Fix

  • Update the time-formatting logic to include a condition for "seconds":
    • If time < 60 seconds, display "Just now" or "Xs ago".
    • Otherwise, proceed with the current minute-based rounding.
Reply