Skip to content
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

Added timezone arg to timestamp() VQL #507

Merged
merged 7 commits into from
Jul 24, 2020
Merged

Added timezone arg to timestamp() VQL #507

merged 7 commits into from
Jul 24, 2020

Conversation

scudette
Copy link
Contributor

Allows more control over what timezone to serialize into JSON.

Also make default ACE config sensible.

Synced vfilter to latest version - can now call stored queries as plugins and lazy expressions as functions.

scudette added 7 commits July 24, 2020 01:39
Added a timezone option to the timestamp() VQL function, this will set
the timezone in the time object so when serialized it will have the
correct representation.

Added an init function to force binary to UTC.
The encoding/json does not support context aware encoding. This
changes wraps all json operations and redirects to
github.com/Velocidex/json which supports context aware encoding.

We set up overrides for time objects which control the RFC 3339
encoding. It is possible now to control timezone by simply setting the
VQL:

LET TZ <= "Australia/Brisbane"

Will force all tables in this cell to be rendered in local
time. Otherwise times are rendered in UTC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant