in nodejs sdk, if I pass the `timestamp`, does tha...
# support
m
in nodejs sdk, if I pass the
timestamp
, does that get used as that events timestamp? or there are no ways to customize the event timestamp?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Yes you should be able to send the timestamp and it should be used as the event timestamp. But when I tested this, I ran into some issue. So give me some more time to get back to you on this.
👍 1
m
@shy-kite-21035 can you elaborate the issue that you ran into?
m
Hi James, I tested it out again and was able to send an older time in the timestamp column. Also in my destination, this time was taken as the event time. I used `timestamp: new Date("2023-11-12T235021.817Z")`⁣
m
@shy-kite-21035 hmm. so setting the timestamp to an ISOString date will set that as the event time? And that event time will be used in like filtering the events. Am I understanding it correctly?
m
Yes that should be used as the event time
m
So, the issue is you were able to send an old timestamp?
s
No I was sending it as a timestamp.toString() which was not being accepted
m
By the source SDK
m
Ah. I see. Yeah, the docs wasn't clear enough on what to send. I just assumed it will accept an ISO formatted date string
m
I made the same mistake :)
😅 1