Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
93edcd28
Commit
93edcd28
authored
Jan 29, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixcore/stringfunctions.cc
View file @
93edcd28
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment