Skip to content

Commit

Permalink
Merge pull request #724 from taosdata/fix/TD-27534
Browse files Browse the repository at this point in the history
fix: taosLocalTime implement1
  • Loading branch information
DuanKuanJun authored Nov 29, 2023
2 parents d340037 + e7f0ffb commit c40386d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolstime.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ struct tm *tLocalTime(const time_t *timep, struct tm *result, char *buf) {
}
return NULL;
}
offset.QuadPart = TIMEEPOCH1900;
offset.QuadPart = ((uint64_t)116445024000000000ULL);
offset.QuadPart += *timep * 10000000;
f.dwLowDateTime = offset.QuadPart & 0xffffffff;
f.dwHighDateTime = (offset.QuadPart >> 32) & 0xffffffff;
Expand Down

0 comments on commit c40386d

Please sign in to comment.