JS: Add support for moment-timezone as well

This commit is contained in:
Asger Feldthaus
2020-11-02 12:50:09 +00:00
parent 7bf21d80b2
commit 9e25bbc4ed

View File

@@ -50,7 +50,7 @@ private module DateFns {
private module Moment {
/** Gets a reference to a `moment` object. */
private API::Node moment() {
result = API::moduleImport("moment")
result = API::moduleImport(["moment", "moment-timezone"])
or
result = moment().getReturn()
or