fix: Use UTC for data inspector date/time display (#2675)

time_t should not be converted to local time zone.
This commit is contained in:
Stephen Hewitt
2026-03-09 07:29:42 +11:00
committed by GitHub
parent c1cdef7ca1
commit 5648378837

View File

@@ -763,7 +763,7 @@ namespace hex::plugin::builtin {
std::string value;
try {
auto time = std::localtime(&endianAdjustedTime);
auto time = std::gmtime(&endianAdjustedTime);
if (time == nullptr) {
value = "Invalid";
} else {
@@ -783,7 +783,7 @@ namespace hex::plugin::builtin {
std::string value;
try {
auto time = std::localtime(&endianAdjustedTime);
auto time = std::gmtime(&endianAdjustedTime);
if (time == nullptr) {
value = "Invalid";
} else {
@@ -805,7 +805,7 @@ namespace hex::plugin::builtin {
std::string value;
try {
auto time = std::localtime(&endianAdjustedTime);
auto time = std::gmtime(&endianAdjustedTime);
if (time == nullptr) {
value = "Invalid";
} else {