[gjs/wip/ptomato/mozjs45prep: 17/18] system: New API for indicating a time zone change
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs45prep: 17/18] system: New API for indicating a time zone change
- Date: Sun, 19 Mar 2017 08:05:07 +0000 (UTC)
commit 8b9987180768f84fadaac79f047993c5449d9f37
Author: Philip Chimento <philip endlessm com>
Date: Sun Mar 19 08:02:23 2017 +0000
system: New API for indicating a time zone change
JS_ClearDateCaches() has been replaced by JS::ResetTimeZone().
modules/system.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/modules/system.cpp b/modules/system.cpp
index 79ffe17..d79a1ca 100644
--- a/modules/system.cpp
+++ b/modules/system.cpp
@@ -27,6 +27,9 @@
#include <sys/types.h>
#include <time.h>
+#include "gjs/jsapi-wrapper.h"
+#include <js/Date.h>
+
#include <gjs/context.h>
#include "gi/object.h"
@@ -137,7 +140,7 @@ gjs_clear_date_caches(JSContext *context,
// localtime_r, see https://bugzilla.mozilla.org/show_bug.cgi?id=1004706
tzset();
- JS_ClearDateCaches(context);
+ JS::ResetTimeZone();
JS_EndRequest(context);
rec.rval().setUndefined();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]