Как заставить typeorm работать с js-joda
export class ZonedDateTimeTransformer implements ValueTransformer {
to(value: ZonedDateTime): Date {
return convert(value).toDate();
}
from(value: Date): ZonedDateTime {
return ZonedDateTime.from(nativeJs(value));
}
}
@Column({
name: 'date_joined',
type: 'timestamp with time zone',
transformer: new ZonedDateTimeTransformer(),
})
readonly dateJoined!: ZonedDateTime;
Я пробовал несколько перестановок трансформатора, он даже не кажется, что он вызывается, я получаю stackru в orm https://github.com/typeorm/typeorm/issues/6181
есть ли способ заставить typeorm играть с типами js-joda?