| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 55013f1b4e45241f652841ad863113a50ced4615..bf780ac7476ada8cd6530ff8433df243bacdc824 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -9615,6 +9615,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateCurrentTime) {
|
| // time is milliseconds. Therefore, we floor the result of getting
|
| // the OS time.
|
| double millis = std::floor(OS::TimeCurrentMillis());
|
| + isolate->date_cache()->CheckTimezone();
|
| return isolate->heap()->NumberFromDouble(millis);
|
| }
|
|
|
| @@ -9661,6 +9662,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateLocalTimezone) {
|
| ASSERT(args.length() == 1);
|
|
|
| CONVERT_DOUBLE_ARG_CHECKED(x, 0);
|
| + isolate->date_cache()->CheckTimezone();
|
| int64_t time = isolate->date_cache()->EquivalentTime(static_cast<int64_t>(x));
|
| const char* zone = OS::LocalTimezone(static_cast<double>(time));
|
| return isolate->heap()->AllocateStringFromUtf8(CStrVector(zone));
|
|
|