UNPKG

@botonic/plugin-contentful

Version:

Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet

14 lines 503 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.offsetWithTimeZone = void 0; /** * @return the offset of specified timezone with respect to offset of local timezone * at specified date */ function offsetWithTimeZone(timeZone, date) { const offset = new Date(date.getTime()).getTimezoneOffset() - timeZone.utcOffset(date.getTime()); return offset * 60 * 1000; } exports.offsetWithTimeZone = offsetWithTimeZone; //# sourceMappingURL=timezones.js.map