Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grpc client receive date wrong with grpc server create by nestjs and type orm #1082

Closed
kuribo001 opened this issue Aug 4, 2024 · 2 comments

Comments

@kuribo001
Copy link

hi all,
the first, i sorry because my english not good.
i got the issue:
in nestjs domain, i create entity typeorm with type timestamp and save data. it worked good.
image
but when i using rgpc client create by nestjs and then, i receive date is "creatdt": "1970-01-01T00:00:00.000Z"
i have check data in database and debug, everything is good.
please help me fix it
---- data debug in domain---
image
---- data debug in bff ----
image
---- proto ffile ---
image
---- model after buf generate
image
---- buf.gen.yml ----
image

@stephenh
Copy link
Owner

stephenh commented Aug 4, 2024

Hi @kuribo001 ! My guess is that you're running into #852 ; that issue is blocked on a protobufjs issue, that we might get unblocked from in ts-proto 2.x, but for now I'm going to close this out; thanks!

@stephenh stephenh closed this as completed Aug 4, 2024
@kuribo001
Copy link
Author

hi @stephenh , tks for your respone,

i read about issue #852 before asking this question.

i think i confused you in the 2nd picture, that picture i took from jsoneditoronline.org so you might have misunderstood that i used string type for date.

this is the result i debugged at domain level.

{ gameusers: GameUserEntity { gid: '94c7ae03-6537-469f-a5bc-d9cd241ba140', uid: '7bfd761d-5d2a-48c6-b65d-08fc7573ceb2', name: 'addfbc', logintype: 'device', linkeduid: null, linkedtype: null, dataversion: 5, keyversion: 332844, creatdt: 2024-08-04T11:24:04.338Z } }

you can see i using date type for creatdt attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants