Skip to content

Commit

Permalink
(lib)sc_macro fix buggy transform_date function (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sims24 authored and kduret committed Feb 14, 2023
1 parent 012e1bd commit 8b91458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ end
-- @param macro_value (number) the timestamp that needs to be converted
-- @return date (string) the converted timestamp
function ScMacros:transform_date(macro_value)
return os.date(self.params.timestamp_conversion_format, os.time(os.date("!*t", macro_value) + self.params.local_time_diff_from_utc))
return os.date(self.params.timestamp_conversion_format, os.time(os.date("!*t", macro_value + self.params.local_time_diff_from_utc)))
end

--- transform_short: mostly used to convert the event output into a short output by keeping only the data before the new line
Expand Down

0 comments on commit 8b91458

Please sign in to comment.