Skip to content

Commit

Permalink
fix(edt): fix timezone issue with estimated departure times
Browse files Browse the repository at this point in the history
We were converting the timestamp back using local time

fix VATSIM-UK#190
  • Loading branch information
AndyTWF committed Aug 5, 2021
1 parent b309c37 commit fa8236f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/helper/HelperFunctions.cpp
Expand Up @@ -85,8 +85,9 @@ namespace UKControllerPlugin {
tm.tm_hour = hours;
tm.tm_min = minutes;
tm.tm_sec = 0;
tm.tm_isdst = 0;

return std::chrono::system_clock::from_time_t(std::mktime(&tm));
return std::chrono::system_clock::from_time_t(_mkgmtime(&tm));
}

/*
Expand Down

0 comments on commit fa8236f

Please sign in to comment.