Skip to content

Commit

Permalink
chore(userspace/libsinsp): revert gmt2local changes.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Jun 25, 2024
1 parent 5e5290c commit 165e60a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions userspace/libsinsp/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,13 +968,7 @@ void sinsp_utils::ts_to_string(uint64_t ts, std::string* res, bool date, bool ns
time_t Time;
uint64_t sec = ts / ONE_SECOND_IN_NS;
uint64_t nsec = ts % ONE_SECOND_IN_NS;
thread_local int32_t thiszone = -1;

if (thiszone == -1)
{
thiszone = gmt2local(0);
}

int32_t thiszone = gmt2local(0);
int32_t s = (sec + thiszone) % 86400;
int32_t bufsize = 0;
char buf[256];
Expand Down

0 comments on commit 165e60a

Please sign in to comment.