gitea/tests
Nick 3d266dd0f3
In TestViewRepo2, convert computed timezones to local time (#24579)
This fixes up https://github.com/go-gitea/gitea/pull/10446; in that, the
*expected* timezone was changed to the local timezone, but the computed
timezone was left in UTC.

The result was this failure, when run on a non-UTC system:

```
	Diff:
    --- Expected
    +++ Actual
    @@ -5,3 +5,3 @@
       commitMsg: (string) (len=12) "init project",
    -  commitTime: (string) (len=29) "Wed, 14 Jun 2017 09:54:21 EDT"
    +  commitTime: (string) (len=29) "Wed, 14 Jun 2017 13:54:21 UTC"
      },
    @@ -11,3 +11,3 @@
       commitMsg: (string) (len=12) "init project",
    -  commitTime: (string) (len=29) "Wed, 14 Jun 2017 09:54:21 EDT"
    +  commitTime: (string) (len=29) "Wed, 14 Jun 2017 13:54:21 UTC"
      }
    Test:       	TestViewRepo2
```

I assume this was probably missed since the CI servers all run in UTC?

The Format() string "Mon, 02 Jan 2006 15:04:05 UTC" was incorrect: 'UTC'
isn't recognized as a variable placeholder, but was just being copied
verbatim. It should use 'MST' in order to command Format() to output the
attached timezone, which is what `time.RFC1123` has.
2023-05-08 21:07:41 +08:00
..
e2e Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
fuzz Move fuzz tests into tests/fuzz (#22376) 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Remove git sample files and ignore them (#24271) 2023-04-22 20:29:29 +08:00
integration In TestViewRepo2, convert computed timezones to local time (#24579) 2023-05-08 21:07:41 +08:00
mssql.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
mysql8.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
mysql.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
pgsql.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
sqlite.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
test_utils.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00