usememos / memos

An open source, lightweight note-taking service. Easily capture and share your great thoughts.
https://usememos.com
MIT License
30.3k stars 2.27k forks source link

Time filter BUG ~~~ #3905

Closed daniellee2015 closed 1 week ago

daniellee2015 commented 2 weeks ago

Describe the bug

The memo was published at an inappropriate time, and the results cannot be filtered by time.

Steps to reproduce

  1. post memo
  2. filter by time
  3. no results

The version of Memos you're using.

Version: v0.22.5

Screenshots or additional context

Time filter bug, today is September 10th. And there is a memo published, but the results cannot be filtered out, and the current time selection is still 9-9。 20240910-073600

In addition, it appeared in yesterday’s results when I filtered it. Added, it appeared in yesterday's results when I filtered. Operations done:

  1. Refresh date;
  2. Switch database type;
  3. Switch language version;
  4. Test with different browsers;
  5. Deploy on the server and use the latest and stable versions respectively At the same time, I found that the time - year/month filter does not work in Safari;
daniellee2015 commented 2 weeks ago

Notes: I tried to unify the time of OpenWrt and docker containers, but there are still bugs in the test image image

daniellee2015 commented 1 week ago

https://github.com/usememos/memos/pull/3794/commits/9a663287a1b2518fef96a27e43a8cfad527068f9 I tried to modify the code according to this guide and successfully fixed the problem.