how to change the mirror repository setting Last Synchronized show time as utc+8 #4343

Closed
opened 2025-11-02 05:47:04 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @wzyxdwll on GitHub (Nov 17, 2019).

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

Description

I try to change the app.ini->time.format = RFC3339,but it look like not effect

I don't know how to change the mirror repository setting Last Synchronized show time as utc+8

Screenshots

image

Originally created by @wzyxdwll on GitHub (Nov 17, 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): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description I try to change the app.ini->time.format = RFC3339,but it look like not effect I don't know how to change the mirror repository setting Last Synchronized show time as utc+8 ## Screenshots ![image](https://user-images.githubusercontent.com/24530906/69004958-f675b200-0955-11ea-8141-f3c3eafa7dff.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@guillep2k commented on GitHub (Nov 25, 2019):

[time]
FORMAT = 2006-01-02 15:04:05
DEFAULT_UI_LOCATION = Asia/Shanghai

The FORMAT value can be set as shown in the "Go layout" column of this page. The value 2006-01-02 15:04:05 is not some arbitrary example but the name of the actual format.

The DEFAULT_UI_LOCATION must be a time zone present in your system, but it will probably be one of those listed here in the "TZ database name" column. GMT+8 will probably be Asia/Shanghai.

@guillep2k commented on GitHub (Nov 25, 2019): ``` [time] FORMAT = 2006-01-02 15:04:05 DEFAULT_UI_LOCATION = Asia/Shanghai ``` The `FORMAT` value can be set as shown in the "**Go layout**" column of [this page](https://programming.guide/go/format-parse-string-time-date-example.html). The value `2006-01-02 15:04:05` is not some arbitrary example but the name of the actual format. The `DEFAULT_UI_LOCATION` must be a time zone present in your system, but it will probably be one of those [listed here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) in the "**TZ database name**" column. `GMT+8` will probably be `Asia/Shanghai`.
Author
Owner

@wzyxdwll commented on GitHub (Nov 25, 2019):

thank you for your answer, i'll try it later.

@wzyxdwll commented on GitHub (Nov 25, 2019): thank you for your answer, i'll try it later.
Author
Owner

@wzyxdwll commented on GitHub (Nov 25, 2019):

I have solved my problem, your answer is perffect,maybe sometimes i should read the source code, thanks again.

@wzyxdwll commented on GitHub (Nov 25, 2019): I have solved my problem, your answer is perffect,maybe sometimes i should read the source code, thanks again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4343