UNPKG

@botonic/plugin-contentful

Version:

## What Does This Plugin Do?

10 lines 347 B
/** * @return the offset of specified timezone with respect to offset of local timezone * at specified date */ export function offsetWithTimeZone(timeZone, date) { const offset = new Date(date.getTime()).getTimezoneOffset() - timeZone.utcOffset(date.getTime()); return offset * 60 * 1000; } //# sourceMappingURL=timezones.js.map