-
Notifications
You must be signed in to change notification settings - Fork 25
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
Timestamps produced by broker::format::json::v1::encode are TZ dependent #434
Comments
We held off on adding the timezone (see discussion in #360) because it would be a breaking change for clients. Using UTC would keep the format stable, but it would change the semantics. So the question is whether clients have relied on local time or not. Are there assumptions on the time zone in the Go binding, @simeonmiteff? @ckreibich: FWIW, I think falling back to UTC until we have proper time zones would be a reasonable change, but I don't know whether people are relying on the current local time or not. Any opinion on that? |
Today it's environmental based which seems really bad :-) |
Broker's JSON serialization is TZ dependent (which seems a bug). For now do the same as we do in btest.cfg and run doctests with TZ set to UTC. Reported in zeek/broker#434.
Broker's JSON serialization is TZ dependent (which seems a bug). For now do the same as we do in btest.cfg and run doctests with TZ set to UTC. Reported in zeek/broker#434.
Broker's JSON serialization is TZ dependent (which seems a bug). For now do the same as we do in btest.cfg and run doctests with TZ set to UTC. Reported in zeek/broker#434.
This is related to #346 , but I wonder if for now we should enforce UTC?
The following snippet encodes the
0
timestamp, which IMO should lead to1970-01-01 00:00.000
regardless of the environment.Currently, the output of this program depends on the setting of
TZ
.This means that two instances of broker with different TZ settings in their environment will not agree on the timestamps.
Before #346 is fixed, should we make sure to always use UTC instead of localtime?
The text was updated successfully, but these errors were encountered: