feat: Add Europe/Bucharest and expand timezone options, update DTOs for timezone and time format

This commit is contained in:
2025-10-03 12:25:15 +00:00
parent a6d6ee18c2
commit 9c7bdb68d5
2 changed files with 19 additions and 0 deletions

View File

@@ -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()

View File

@@ -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' },