Commit 93edcd28 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Capturing daylight savings time in utc_to_time.

parent 6cf7b9e9
Pipeline #11545 passed with stages
in 4 minutes and 43 seconds
......@@ -129,12 +129,13 @@ struct std::tm utc_to_time(const std::string &time, int &zone, int &daylight)
&day, &hour, &minute, &second, &zone, &daylight);
radix_line("utc_to_time elements: " << count);
struct std::tm res;
res.tm_year = year;
res.tm_mon = month;
res.tm_mday = day;
res.tm_hour = hour;
res.tm_min = minute;
res.tm_sec = second;
res.tm_year = year;
res.tm_mon = month;
res.tm_mday = day;
res.tm_hour = hour;
res.tm_min = minute;
res.tm_sec = second;
res.tm_isdst = daylight;
radix_line("Parsed time:" << year << "-" << month << "-" << day << "T" << hour
<< ":" << minute << ":" << second << "-" << zone
<< ":" << daylight);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment