I m using nestjs with typeorm
Here is the code of my Entity for column created_at
@CreateDateColumn({
type: "datetime",
precision: 0,
default: () => "CURRENT_TIMESTAMP()"
})
created_at: Date
This code is stamping the date & time in mariadb database in a correct fprmat as expected here is the image of that
When sending response to client, this datetime format is changed from "2022-04-30 11:45:57" to "2022-04-30T06:23:59.000Z"
I m a beginner exploring nestjs to use for my upcoming project So how this problem can be solved.
Any suggestion is welcomed.