usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34.07k stars 2.47k forks source link

The resource's created time is not matched #3406

Closed tigerzioo closed 5 months ago

tigerzioo commented 5 months ago

Describe the bug

资源库里显示的文件上传的月份不对,有一个月的误差。四月上传的会显示在三月,现在上传一个图片,还是显示在四月。

Steps to reproduce

上传文件,点击资源库,刚上传的文件显示在4月里。

The version of Memos you're using

21.0 和 22.0 都有这个问题,估计以前的也有

Screenshots or additional context

No response

Issues-translate-bot commented 5 months ago

Issue is not in English. It has been translated automatically.


Title: The file upload month displayed in the resource library is incorrect.

boojack commented 5 months ago

Unable to reproduce. Maybe you can take a look for the time zone where your service is located, or provide a real data from your database.

image
tigerzioo commented 5 months ago

See screenshot. I uploaded an image (download.jpg) on your demo website (0.22.1) 2 minutes ago. It shows in April.

memos_filedateissue

Issues-translate-bot commented 5 months ago

Issue is not in English. It has been translated automatically.


See screenshot. I uploaded a image (download.jpg) on your demo website (0.22.1) 2 minutes ago. It shows in April.

memos_filedateissue

boojack commented 5 months ago

It works right on my side. So it's probably related to the time zone of your browser/OS.

image
tigerzioo commented 5 months ago

I am using the US Central time. It is very strange it has 1 month offset. I can understand if there is one day offset. I am wondering if there is a way for fix it. The logic to calculate the month might be able to be adjusted. Thank you.

dwong33 commented 5 months ago

It has been a long term issue, related to the timezone configuration, for those who are located in North America, it will result in such a weird 1 month offset.

dwong33 commented 3 months ago

Snip20240724_2 Snip20240724_3

Let me provide more information on how to replicate this bug. If we choose the timezone of a computer to be Shanghai or Hong Kong, it will show the correct month - July. If we choose another timezone, say New York or Toronto, and refresh the page, it will show the wrong month - June.