Hi Preston_Vasquez, thanks for your reply.
I am sorry for being late to this, but I figured out the solution to this was setting the date type as
time.Time
instead of
primitive.DateTime
to make it work.
I can confirm that field had correct record for every field type. I did not looked into this issue more once I got it working.
I don’t know if the reason is that data is written by different process in JS and then called here which is causing the conflict, but that should not be the case.