title: How to get local time of different timezone in Postman?
body: <p>I want to get local time of Rome time zone. Didn't find any details on how to use moment sandbox built-in library in <strong>postman</strong> documentation here <a href="https://learning.getpostman.com/docs/postman/scripts/postman_sandbox_api_reference/" rel="nofollow noreferrer">postman_sandbox_api_reference</a></p>
  <p>what I have tried so far</p>
  <pre class="lang-js prettyprint-override"><code>var moment = require('moment');
  console.log(moment().tz(environment.TimeZone).format());
  </code></pre>
  <p>error it throws - <code> TypeError | moment(...).tz is not a function</code></p>
  <p>another attempt-</p>
  <pre class="lang-js prettyprint-override"><code>var moment = require('moment-timezone');
  console.log(moment().tz(environment.TimeZone).format());
  </code></pre>
  <p>error it throws - <code>Error | Cannot find module 'moment-timezone'</code></p>
  <p>Where I'm going wrong? can anyone point me in right direction.</p>
  <p>Thanks</p>