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 committed Dec 3, 2021
1 parent ced2886 commit 34ae614
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 34ae614

Please sign in to comment.