Bufgfix: time is in UTC now
This commit is contained in:
parent
3273434cfb
commit
f7a17dff09
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastobotmon
|
||||
VERSION 0.1.1
|
||||
VERSION 0.1.2
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
|||
std::istringstream isslast(json[0]["created_at"].GetString());
|
||||
struct std::tm tm = {0};
|
||||
isslast >> std::get_time(&tm, "%Y-%m-%dT%T");
|
||||
std::time_t time = mktime(&tm);
|
||||
std::time_t time = timegm(&tm);
|
||||
|
||||
const auto now = std::chrono::system_clock::now();
|
||||
const auto last = std::chrono::system_clock::from_time_t(time);
|
||||
|
|
Loading…
Reference in New Issue