From 1efa79126f57a733f9f9066f91bc28e7cb4f6ccd Mon Sep 17 00:00:00 2001 From: Ernesto Revilla Date: Tue, 26 Dec 2017 23:34:48 +0100 Subject: [PATCH] Fix deprecation warning with date or datetime fields. See #564. --- src/js/Alpaca.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/Alpaca.js b/src/js/Alpaca.js index 19314e537..29ad6b39a 100644 --- a/src/js/Alpaca.js +++ b/src/js/Alpaca.js @@ -5072,7 +5072,7 @@ throw new Error("The moment.js library has not been included, cannot produce moment object"); } - return Alpaca._moment.call(this, arguments); + return Alpaca._moment.apply(this, arguments); }; ////////////////////////////////////////////////////////////////////////////////////////////////