feat: Add Europe/Bucharest and expand timezone options, update DTOs for timezone and time format
This commit is contained in:
@@ -14,6 +14,10 @@ export class UserPreferencesDto {
|
||||
@IsOptional()
|
||||
@IsIn(['metric', 'imperial'])
|
||||
measurementUnit?: 'metric' | 'imperial';
|
||||
|
||||
@IsOptional()
|
||||
@IsIn(['12h', '24h'])
|
||||
timeFormat?: '12h' | '24h';
|
||||
}
|
||||
|
||||
export class UpdateProfileDto {
|
||||
@@ -25,6 +29,10 @@ export class UpdateProfileDto {
|
||||
@IsString()
|
||||
locale?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
timezone?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsObject()
|
||||
@ValidateNested()
|
||||
|
||||
Reference in New Issue
Block a user