go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.99k stars 5.4k forks source link

Gamemaker studio 2: Modified files have modification time as "59 minutes from now" #4804

Closed CoderReece closed 6 years ago

CoderReece commented 6 years ago

Description

I believe this is a software compatibility issue. I've been using gitea for some time now since Gamemaker studio 2 forced me over from svn. I like git it's helpful.

This issue is that after pushing a commit to the repo the modified files say "59 minutes from now" as the modification date. I've tried applying commits for other projects not using gamemaker studio and the time is correct.

Screenshots

Screenshot is 6 minutes after the issue. effected files are "53 minutes from now" timeissue

SagePtr commented 6 years ago

Does "git log" command run from local repo prints correct time or shifted by 59 minutes too? If shifted, this is issue with software you are making commits with, looks like wrong timezone setting.

CoderReece commented 6 years ago

Date: Mon Aug 27 19:09:55 2018 +0100

It looks correct however i am unsure of what "+0100" is. could that be an offset?

CoderReece commented 6 years ago

I can't find anything in the git documentation on how to change the repo time.

SagePtr commented 6 years ago

+0100 is timezone (UTC+1)

CoderReece commented 6 years ago

I know that i just don't know how to apply that to the git i'm very new to git

SagePtr commented 6 years ago

And another question: does http://time.is/ shows right time or it detects clock wrong?

CoderReece commented 6 years ago

it shows the correct time and says it's 0.5 seconds ahead.

SagePtr commented 6 years ago

Then computer time seems to be correct, and what about server time on which your gitea instance is installed? You can check it with developer tools of any browser, open Network tab, reload page with your remote repo and look "Date" response header.

CoderReece commented 6 years ago

Hmm the response header date is behind the current time, right now the time is 00:34 Date: Mon, 27 Aug 2018 22:34:39 GMT

SagePtr commented 6 years ago

So it's problem with server clock then, ask server administrator to adjust it

CoderReece commented 6 years ago

This is strange the server time is now wrong and the webserver also reports a different time however the commits are 10 seconds off, in which i can live with.

It might be because I've got it going through an apache reverse proxy.

Although do you know why this wasn't happening with my previous projects outside of gamemaker?

SagePtr commented 6 years ago

No, it doesn't matter whenever server is behind reverse proxy or not. Probably time synchronization is not configured on server and someone switched DST manually. Other projects probably don't print wrong time because you push to them through web-interface and all commits are marked with wrong-timezoned time which looks correct but has wrong timezone offset, if you clone such project to your local machine and look commit history with any git client - you will see wrong time there.

CoderReece commented 6 years ago

Might as well close this since it isn't an issue with gitea.