title: TypeError: moment().tz is not a function
body: <p>When testing using jasmine, I am getting this error.</p>
  
  <p><strong>TypeError: moment.tz is not a function</strong></p>
  
  <p>My code that I try to test is </p>
  
  <pre><code>let myDate = moment().tz(undefined, vm.timeZone).format('YYYY-MM-DD'); 
  </code></pre>