The date of last sync (if use mirrors) does not match with "x days ago" on front page #4001

Closed
opened 2025-11-02 05:33:39 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @jayjupdhig on GitHub (Sep 23, 2019).

  • Gitea version (or commit ref): Current
  • Git version: Current
  • Operating system: Debian 9 "Stretch"
  • Database (use [x]):
    • PostgreSQL
    • [ x] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x] Not relevant
  • Log gist:

Description

The date of last sync (if use mirrors) does not match: I get another value if i click on the project mirror settings button "Synchronize now". After clicking there, i will show me the current date/time (minus a few secs) for the last sync.

And that time/date value, on the top of "Synchonize now" button in project's mirror settings section, does not fit to the value i get on the from page, someting like "x days ago"

A few secs ago is not x days ago, hope you understand what i mean.

More here about the problem: https://github.com/go-gitea/gitea/issues/8252#issuecomment-534140138

Screenshots

No screenshots yet, it think it is not necessary to post some screenshots. If you need some, don't hesitate to ask. Thx.

Originally created by @jayjupdhig on GitHub (Sep 23, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): Current - Git version: Current - Operating system: Debian 9 "Stretch" - Database (use `[x]`): - [ ] PostgreSQL - [ x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ x] Not relevant - Log gist: ## Description The date of last sync (if use mirrors) does not match: I get another value if i click on the project mirror settings button "Synchronize now". After clicking there, i will show me the current date/time (minus a few secs) for the last sync. And that time/date value, on the top of "Synchonize now" button in project's mirror settings section, does not fit to the value i get on the from page, someting like "x days ago" A few secs ago is not x days ago, hope you understand what i mean. More here about the problem: https://github.com/go-gitea/gitea/issues/8252#issuecomment-534140138 ## Screenshots <!-- **If this issue involves the Web Interface, please in --> No screenshots yet, it think it is not necessary to post some screenshots. If you need some, don't hesitate to ask. Thx.
Author
Owner

@jayjupdhig commented on GitHub (Oct 3, 2019):

No anwser, or is it a feature instead of a bug? ;-)

@jayjupdhig commented on GitHub (Oct 3, 2019): No anwser, or is it a feature instead of a bug? ;-)
Author
Owner

@6543 commented on GitHub (Oct 3, 2019):

I think you mix up last change with last sync ?

@6543 commented on GitHub (Oct 3, 2019): I think you mix up `last change` with `last sync` ?
Author
Owner

@jayjupdhig commented on GitHub (Oct 9, 2019):

maybe the "x days ago" on front page is the repo creation date and not the date of the last sync...(?)

@jayjupdhig commented on GitHub (Oct 9, 2019): maybe the `"x days ago" on front page` is the repo creation date and not the date of the last sync...(?)
Author
Owner

@jayjupdhig commented on GitHub (Oct 9, 2019):

I think you mix up last change with last sync ?

That should be be the same if i only commit/push to the remote repo.

@jayjupdhig commented on GitHub (Oct 9, 2019): `I think you mix up last change with last sync ?` That should be be the same if i only commit/push to the remote repo.
Author
Owner

@6543 commented on GitHub (Oct 9, 2019):

at the front a mirror is like a normal repo with an extra icon ...
-> Updated x use the timestamp of the commit

... so non mirror repos have this too

@6543 commented on GitHub (Oct 9, 2019): at the front a mirror is like a normal repo with an extra icon ... -> Updated x use the timestamp of the commit ... so non mirror repos have this too
Author
Owner

@jayjupdhig commented on GitHub (Oct 10, 2019):

ok thx

@jayjupdhig commented on GitHub (Oct 10, 2019): ok thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4001