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

timestamp issue #5

Open
cftang0827 opened this issue Sep 29, 2018 · 0 comments
Open

timestamp issue #5

cftang0827 opened this issue Sep 29, 2018 · 0 comments

Comments

@cftang0827
Copy link

Hi, thank you for the great flask file server, and I found an issue about timestamp of modified time. According to code, the timestamp is based on utc time, however, I think the timestamp should be same with the system time of operating system.

My time zone is UTC+8, and there's wrong time(UTC) show in my file server.

So I think the code can be modified from

mdate = datetime.utcfromtimestamp(timestamp)

to

mdate = datetime.fromtimestamp(timestamp)

I am not sure that my idea is right or wrong, or there's some reason that you use utc time?

Thank you.

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

1 participant