File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export class PlayerBanEntity {
7
7
@PrimaryColumn ( )
8
8
steam_id : string ;
9
9
10
- @Column ( )
10
+ @Column ( { type : "timestamptz" } )
11
11
endTime : Date ;
12
12
13
13
@Column ( )
@@ -16,7 +16,7 @@ export class PlayerBanEntity {
16
16
public asBanStatus ( ) : BanStatus {
17
17
return new BanStatus (
18
18
new Date ( ) . getTime ( ) < this . endTime . getTime ( ) ,
19
- this . endTime . getTime ( ) ,
19
+ this . endTime . toISOString ( ) ,
20
20
this . reason ,
21
21
) ;
22
22
}
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ export class PlayerSummaryDto extends LeaderboardEntryDto {
34
34
export class BanStatusDto {
35
35
public readonly steam_id : string ;
36
36
public readonly isBanned : boolean ;
37
- public readonly bannedUntil : number ;
37
+ // iso
38
+ public readonly bannedUntil : string ;
38
39
39
40
@ApiProperty ( { enum : BanReason , enumName : 'BanReason' } )
40
41
public readonly status : BanReason ;
You can’t perform that action at this time.
0 commit comments