feat(timezone): Adds timezone as option
This commit is contained in:
parent
0b9089ffae
commit
b852c06f83
11 changed files with 278 additions and 22 deletions
|
|
@ -8,7 +8,8 @@ import { Nullable } from "../../types/Nullable";
|
|||
import {ConfigurationTransformer, TransformerType} from "../ConfigurationTransformer";
|
||||
|
||||
export type RuntimeServerConfiguration = {
|
||||
permissions: PermissionRuntimeServerConfiguration
|
||||
permissions: PermissionRuntimeServerConfiguration,
|
||||
timezone: string
|
||||
}
|
||||
|
||||
export type PermissionRuntimeServerConfiguration = {
|
||||
|
|
@ -35,7 +36,8 @@ export class ServerConfigurationProvider implements ConfigurationProvider<
|
|||
groupCreation: {
|
||||
allowEveryone: false
|
||||
}
|
||||
}
|
||||
},
|
||||
timezone: '',
|
||||
}
|
||||
}
|
||||
get(path: string): Nullable<ServerConfigurationModel> {
|
||||
|
|
@ -62,6 +64,10 @@ export class ServerConfigurationProvider implements ConfigurationProvider<
|
|||
{
|
||||
path: ['permissions', 'groupCreation', 'allowEveryone'],
|
||||
type: TransformerType.PermissionBoolean
|
||||
},
|
||||
{
|
||||
path: ['timezone'],
|
||||
type: TransformerType.Timezone
|
||||
}
|
||||
]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue