@@ -26,7 +26,9 @@ func TestUserOrgs(t *testing.T) {
2626 unrelatedUsername := "user5"
2727
2828 orgs := getUserOrgs (t , adminUsername , normalUsername )
29-
29+ for _ , org := range orgs {
30+ org .Created = org .Created .Local ()
31+ }
3032 org3 := unittest .AssertExistsAndLoadBean (t , & user_model.User {Name : "org3" })
3133 org17 := unittest .AssertExistsAndLoadBean (t , & user_model.User {Name : "org17" })
3234
@@ -42,6 +44,7 @@ func TestUserOrgs(t *testing.T) {
4244 Website : "" ,
4345 Location : "" ,
4446 Visibility : "public" ,
47+ Created : org17 .CreatedUnix .AsTime ().Local (),
4548 },
4649 {
4750 ID : 3 ,
@@ -54,6 +57,7 @@ func TestUserOrgs(t *testing.T) {
5457 Website : "" ,
5558 Location : "" ,
5659 Visibility : "public" ,
60+ Created : org3 .CreatedUnix .AsTime ().Local (),
5761 },
5862 }, orgs )
5963
@@ -100,6 +104,10 @@ func TestMyOrgs(t *testing.T) {
100104 resp := MakeRequest (t , req , http .StatusOK )
101105 var orgs []* api.Organization
102106 DecodeJSON (t , resp , & orgs )
107+ for _ , org := range orgs {
108+ org .Created = org .Created .Local ()
109+ }
110+
103111 org3 := unittest .AssertExistsAndLoadBean (t , & user_model.User {Name : "org3" })
104112 org17 := unittest .AssertExistsAndLoadBean (t , & user_model.User {Name : "org17" })
105113
@@ -115,6 +123,7 @@ func TestMyOrgs(t *testing.T) {
115123 Website : "" ,
116124 Location : "" ,
117125 Visibility : "public" ,
126+ Created : org17 .CreatedUnix .AsTime ().Local (),
118127 },
119128 {
120129 ID : 3 ,
@@ -127,6 +136,7 @@ func TestMyOrgs(t *testing.T) {
127136 Website : "" ,
128137 Location : "" ,
129138 Visibility : "public" ,
139+ Created : org3 .CreatedUnix .AsTime ().Local (),
130140 },
131141 }, orgs )
132142}
0 commit comments