Index: src/date.h |
diff --git a/src/date.h b/src/date.h |
index fcd61db046715003564a6e0fa73e009001361ab9..3bcfee97030975bfa0051534b8b93473d33e8488 100644 |
--- a/src/date.h |
+++ b/src/date.h |
@@ -122,6 +122,13 @@ class DateCache { |
return static_cast<int>((time_ms - local_ms) / kMsPerMin); |
} |
+ void CheckTimezone() { |
+ if (local_offset_ms_ != kInvalidLocalOffsetInMs && |
+ local_offset_ms_ != GetLocalOffsetFromOS()) { |
+ ResetDateCache(); |
+ } |
+ } |
+ |
// ECMA 262 - 15.9.1.9 |
int64_t ToLocal(int64_t time_ms) { |
return time_ms + LocalOffsetInMs() + DaylightSavingsOffsetInMs(time_ms); |