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()
|
||||
|
||||
@@ -40,7 +40,18 @@ const TIMEZONES = {
|
||||
{ value: 'Europe/Brussels', label: 'Brussels' },
|
||||
{ value: 'Europe/Vienna', label: 'Vienna' },
|
||||
{ value: 'Europe/Athens', label: 'Athens' },
|
||||
{ value: 'Europe/Bucharest', label: 'Bucharest' },
|
||||
{ value: 'Europe/Budapest', label: 'Budapest' },
|
||||
{ value: 'Europe/Warsaw', label: 'Warsaw' },
|
||||
{ value: 'Europe/Prague', label: 'Prague' },
|
||||
{ value: 'Europe/Stockholm', label: 'Stockholm' },
|
||||
{ value: 'Europe/Copenhagen', label: 'Copenhagen' },
|
||||
{ value: 'Europe/Oslo', label: 'Oslo' },
|
||||
{ value: 'Europe/Helsinki', label: 'Helsinki' },
|
||||
{ value: 'Europe/Dublin', label: 'Dublin' },
|
||||
{ value: 'Europe/Lisbon', label: 'Lisbon' },
|
||||
{ value: 'Europe/Moscow', label: 'Moscow' },
|
||||
{ value: 'Europe/Istanbul', label: 'Istanbul' },
|
||||
],
|
||||
'Asia': [
|
||||
{ value: 'Asia/Dubai', label: 'Dubai' },
|
||||
|
||||
Reference in New Issue
Block a user