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 authored and poiana committed Jun 25, 2024
1 parent 81f533e commit ca8e164
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 ca8e164

Please sign in to comment.