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

column transform from unix timestamp to other does not work #2

Open
amarbajric opened this issue Dec 4, 2018 · 0 comments
Open

column transform from unix timestamp to other does not work #2

amarbajric opened this issue Dec 4, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@amarbajric
Copy link
Owner

Whenever a special condition is used for converting a unix timestamp into another timestamp (i.e. from unix to utc, or from unix to unix) the input timestamp as unix is divided by the multiplier of the given precision.

Example:
-ct timestamp:@timestamp{unix:millis}->@timestamp{%Y-%m-%d}
In this example the given unix timestamp should be in milliseconds precision (according to user input). Now the given unix timestamp is for whatever reason divided by the precision multiplier value to generate a date object which is not necessary at all (see line 98).

Solution:

  • Remove the division in line 98 as it is not needed
@amarbajric amarbajric added the bug Something isn't working label Dec 4, 2018
@amarbajric amarbajric self-assigned this Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant