@ -3,10 +3,11 @@ import type {
DateRange,
ViewMode
} from '@ghostfolio/common/types';
import { Type } from 'class-transformer';
import {
IsBoolean,
IsDate,
IsIn,
IsISO8601,
IsNumber,
IsOptional,
IsString
@ -53,9 +54,9 @@ export class UpdateUserSettingDto {
@IsOptional()
projectedTotalAmount?: number;
@IsDate()
@IsISO8601()
retirementDate?: Date;
retirementDate?: string;
@IsNumber()
@ -112,7 +112,7 @@ export class FirePageComponent implements OnDestroy, OnInit {
public onRetirementDateChange(retirementDate: Date) {
this.dataService
.putUserSetting({
retirementDate,
retirementDate: retirementDate.toISOString(),
projectedTotalAmount: null
})
.pipe(takeUntil(this.unsubscribeSubject))
@ -11,7 +11,7 @@ export interface UserSettings {
language?: string;
locale?: string;
savingsRate?: number;
viewMode?: ViewMode;
}