-
I'm having trouble parsing a timestamp correctly in vector
As far as I can tell, this should resolve to an hour of ![]() How do I tell vector that this string is in fact time UTC time and not my local time zone? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @paymog , In your pattern |
Beta Was this translation helpful? Give feedback.
Hi @paymog ,
In your pattern
Z
is matched as a literal so the timestamp is interpreted as a timestamp without a timezone, which is why it uses the local timezone. I think you want:parse_timestamp!("2024-07-29T14:13:44.573709634Z", "%+")
which will use the timezone from the timestamp.