Skip to content

Mobile submission history time error. #1031

Description

@lindexin168

Describe the problem:

Hello, first of all, thank you very much for developing the Obsidian plugin, which allows me to synchronize notes between multiple devices. The current problem encountered is that when viewing historical submission records on mobile devices, the submission record time is displayed as: 1970-01-21 00:00:00. After searching for many answers, it seems that the problem has not been solved. Currently, there are devices with abnormal submission record time, Android、iPhone、iPad, I don't know if you have also encountered this problem. I'm very sorry, as I'm not very good at English, I translated it from Chinese to English through software

Image

Activity

  1. changed the title [-]移动端提交历史记录时间错误。[/-] [+]Mobile submission history time error.[/+] on Feb 9, 2026
  2. floris-xlx commented on Apr 27, 2026

    @floris-xlx

    可以这样写得更自然一点(带一点轻微的非母语表达):

    这其实不是实际的记录时间,而是因为时间字段没有被正确写入或者解析,系统就回退到了 Unix 时间戳的起点(1970-01-01 00:00:00,有时候因为时区会显示成 1970-01-21 之类的)。

    另外,这种情况一般是因为时间单位被错误理解了,比如:

    • 本来是“秒”的时间戳,被当成“毫秒”处理,或者反过来
    • 这样数值就会变得不对,要么太大要么太小
    • 超出系统能处理的范围后,就会直接fallback到这个默认时间

    比如:
    如果一个秒级时间戳被当成毫秒,它就会变成一个很早的时间;如果毫秒被当成秒,就会变成一个特别大的未来时间,很多系统会直接当作无效,然后用默认值。

    建议检查一下:

    • 客户端上传的时间是不是正确单位(秒还是毫秒)
    • 服务端解析有没有统一
    • 有没有把 0 或者空值直接写进去

    本质上这是一个时间单位或解析的问题,不是历史数据真的有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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