Applies to:
- Plan - Any
- Deployment - Any
- Use case - Sending timezone-aware datetime fields in trace data and seeing them converted to UTC
Summary
This article applies to datetime fields stored in trace data, such as input, output, or metadata. It does not describe how the Braintrust UI formats trace timestamps. In the trace Details view, including Metrics > Start, Braintrust displays timestamps in your browser’s local timezone. Hover over Metrics > Start to see both local time and UTC.
2026-07-03T08:30:00+01:00 is stored and displayed as 2026-07-03T07:30:00Z.
Cause: Brainstore automatically normalizes any field that parses as RFC3339 to UTC at index time.
Resolution: Store the original UTC offset in a separate metadata field alongside the datetime field.
Resolution steps
If you need to preserve the original timezone offset:
Step 1: Add a separate field for the offset
Store the offset as a plain string in a companion field. This keeps your datetime field functional for filtering and date operators.Otherwise, if you want to prevent UTC conversion entirely:
Step 1: Store the value as a non-parseable string
Insert a space before the offset to cause the datetime cast to fail. Brainstore will then store the value as a plain string.Understand the tradeoff
Fields stored as strings are not indexed as datetime. This means:- Date operators are unavailable when querying
- Filtering on this field will be less efficient