Index: snapshot/win/system_snapshot_win_test.cc |
diff --git a/snapshot/win/system_snapshot_win_test.cc b/snapshot/win/system_snapshot_win_test.cc |
index 735b2f45ce45af30899b16210f594ea543388fc2..d0caee7d667d340bcf5f7da6230a3ebc1a582848 100644 |
--- a/snapshot/win/system_snapshot_win_test.cc |
+++ b/snapshot/win/system_snapshot_win_test.cc |
@@ -123,6 +123,10 @@ TEST_F(SystemSnapshotWinTest, TimeZone) { |
// |standard_offset_seconds| gives seconds east of UTC, and |timezone| gives |
// seconds west of UTC. |
+#if _MSC_VER >= 1900 |
+ long timezone = 0; |
+ _get_timezone(&timezone); |
+#endif |
EXPECT_EQ(-timezone, standard_offset_seconds); |
// In contemporary usage, most time zones have an integer hour offset from |