-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improvements for supporting UI Location #3146
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3146 +/- ##
==========================================
+ Coverage 34.71% 34.72% +0.01%
==========================================
Files 276 276
Lines 39974 39975 +1
==========================================
+ Hits 13876 13881 +5
+ Misses 24102 24100 -2
+ Partials 1996 1994 -2
Continue to review full report at Codecov.
|
models/ssh_key.go
Outdated
@@ -740,6 +736,12 @@ func GetDeployKeyByRepo(keyID, repoID int64) (*DeployKey, error) { | |||
return key, nil | |||
} | |||
|
|||
// UpdateDeployKeyCols updates deploy key information only columns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: // UpdateDeployKeyCols updates deploy key information only in the specified columns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
@@ -24,7 +25,7 @@ type TrackedTime struct { | |||
|
|||
// AfterLoad is invoked from XORM after setting the values of all fields of this object. | |||
func (t *TrackedTime) AfterLoad() { | |||
t.Created = time.Unix(t.CreatedUnix, 0).Local() | |||
t.Created = time.Unix(t.CreatedUnix, 0).In(setting.UILocation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have we left the Created
field in the TrackedTime
struct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has one json:"created"
tag here. I should invistigate where referenced it. Maybe send a PR later.
dd202ec
to
394c764
Compare
should fix #3178 |
LGTM |
LGTM |
As title.