memos icon indicating copy to clipboard operation
memos copied to clipboard

The resource's created time is not matched

Open tigerzioo opened this issue 1 year ago • 7 comments

Describe the bug

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

Steps to reproduce

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

The version of Memos you're using

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

Screenshots or additional context

No response

tigerzioo avatar May 19 '24 18:05 tigerzioo

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


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

Issues-translate-bot avatar May 19 '24 18:05 Issues-translate-bot

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

boojack avatar May 20 '24 14:05 boojack

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

memos_filedateissue

tigerzioo avatar May 20 '24 16:05 tigerzioo

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

Issues-translate-bot avatar May 20 '24 16:05 Issues-translate-bot

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

image

boojack avatar May 21 '24 00:05 boojack

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.

tigerzioo avatar May 21 '24 12:05 tigerzioo

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 avatar May 22 '24 22:05 dwong33

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.

dwong33 avatar Jul 24 '24 05:07 dwong33