const moment = require('moment-timezone');

const offsetToTimezones = {};
const timezoneToOffset = {};

function compute(now = new Date()) {
  now = +now;
  const timezones = moment.tz.names();

  for (const zone of timezones) {
    const offset = moment.tz.zone(zone).utcOffset(now);
    timezoneToOffset[zone] = offset;
    offsetToTimezones[offset] = offsetToTimezones[offset] || [];
    offsetToTimezones[offset].push(zone);
  }
}

compute();

module.exports = {
  compute,
  offsetToTimezones,
  timezoneToOffset,
};

@@ -429,16 +429,46 @@
 %0A  %7D%0A%7D%0A%0A
+if (!process.env.TESTING) %7B%0A  
 compute(
@@ -469,16 +469,18 @@
 mpute();
+%0A%7D
 %0A%0Amodule

Disable automatic offsets generation in testing