Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect timezone on upload #233

Open
hyperdatavn opened this issue Aug 17, 2024 · 4 comments
Open

Incorrect timezone on upload #233

hyperdatavn opened this issue Aug 17, 2024 · 4 comments

Comments

@hyperdatavn
Copy link

  • After upload a file to Drive app, a timezone is incorrect, after update or preview a file then a timezone is correct again.
@uhrjun uhrjun changed the title Timezone is incorrect when upload a file to Drive app Incorrect timezone on upload Sep 3, 2024
@uhrjun
Copy link
Member

uhrjun commented Sep 3, 2024

Could you validate this on the latest release? I changed date format handling in 429b9b5

If the issue still persists, attach a screenshot.

@hyperdatavn
Copy link
Author

Could you validate this on the latest release? I changed date format handling in 429b9b5

If the issue still persists, attach a screenshot.

Hi @uhrjun , i pull latest code in main branch. but look it still dont work as expectation ?
As an image, why Created time is later Modified time ?
image

@uhrjun
Copy link
Member

uhrjun commented Sep 5, 2024

why Created time is later Modified time?

We can check modified date from the file, but browsers don't support checkingcreated date. So "Created" here is whenever you uploaded the file to drive. This behavior is consistent with other web clients such as NextCloud and Google Drive. Although I think should change the name from "Created" to "Uploaded" to avoid confusion here.

Unless I roll a custom client for uploading files, or find some server side way to recover the original created date. This will remain.

@hyperdatavn
Copy link
Author

why Created time is later Modified time?

We can check modified date from the file, but browsers don't support checkingcreated date. So "Created" here is whenever you uploaded the file to drive. This behavior is consistent with other web clients such as NextCloud and Google Drive. Although I think should change the name from "Created" to "Uploaded" to avoid confusion here.

Unless I roll a custom client for uploading files, or find some server side way to recover the original created date. This will remain.

Besides Createad Date make confused, I'm still facing wrong timezone after upload a file, although i just created new file, but after upload it display 7 hours ago. I think it related a timezone is handled incorrect. My timezone is UTC +7

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants