Skip to content

Timestamp parsing issues on knowledge/instructions #2073

@gauss1986

Description

@gauss1986

The 'Created time' in the instructions pages is off.

Steps to reproduce the behavior:

  1. Go to 'Knowledge - Instructions'
  2. Click on 'Add an instruction' and add one.
  3. The Created time shows '1768-02-29' or something that is clearly off.

The createdat field in the network is a string format of int
Image

Desktop (please complete the following information):

  • OS: mac os
  • Browser: chrome

Wren UI

  • Version: 0.31.2

Root Cause

  • In the frontend code (wren-ui/src/utils/time.ts), time formatting utilities like getCompactTime call dayJs(time) directly.
  • When called with a numeric string (e.g., "1764725636199"), dayjs parses it as a date string rather than a millisecond timestamp, resulting in a completely wrong historical date.
  • This affects all usages across the frontend that pass API response timestamps directly into these utilities without normalization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions