feat(timezone): Adds timezone as option

This commit is contained in:
Michel Fedde 2025-06-29 21:52:53 +02:00
parent 0b9089ffae
commit b852c06f83
11 changed files with 278 additions and 22 deletions

View file

@ -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
}
]
)