Skip to content

[Bug]: When updating a task using browser mode, the update time does not match the local time #362

@yinzhenyu-su

Description

@yinzhenyu-su

Describe the bug
When updating a task using browser mode, the update time does not match the local time,my timezone is UTC+8

Image

To Reproduce
Steps to reproduce the behavior:

  1. Create and update tasks in the browser.
  2. Check update time and local time.

Expected behavior
The update time is the same as the local time.
Environment

  • OS: [MacOS 15.7]
  • Node version: [22]

Additional context
Perhaps the dayjs library can be introduced to solve this problem.

task.updatedDate = new Date().toISOString().slice(0, 16).replace("T", " ");

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions