Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
1b3946cf
Commit
1b3946cf
authored
Nov 20, 2015
by
yaoyuan1216
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace GetDynamicTimeZoneInformation to GetTimeZoneInformation.
parent
cbc8ba72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
os.h
include/spdlog/details/os.h
+5
-0
No files found.
include/spdlog/details/os.h
View file @
1b3946cf
...
@@ -166,8 +166,13 @@ inline int utc_minutes_offset(const std::tm& tm = details::os::localtime())
...
@@ -166,8 +166,13 @@ inline int utc_minutes_offset(const std::tm& tm = details::os::localtime())
#ifdef _WIN32
#ifdef _WIN32
(
void
)
tm
;
// avoid unused param warning
(
void
)
tm
;
// avoid unused param warning
#if _WIN32_WINNT < _WIN32_WINNT_WS08
TIME_ZONE_INFORMATION
tzinfo
;
auto
rv
=
GetTimeZoneInformation
(
&
tzinfo
);
#else
DYNAMIC_TIME_ZONE_INFORMATION
tzinfo
;
DYNAMIC_TIME_ZONE_INFORMATION
tzinfo
;
auto
rv
=
GetDynamicTimeZoneInformation
(
&
tzinfo
);
auto
rv
=
GetDynamicTimeZoneInformation
(
&
tzinfo
);
#endif
if
(
!
rv
)
if
(
!
rv
)
return
-
1
;
return
-
1
;
return
-
1
*
(
tzinfo
.
Bias
+
tzinfo
.
DaylightBias
);
return
-
1
*
(
tzinfo
.
Bias
+
tzinfo
.
DaylightBias
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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