title: TypeError: moment(...).tz is not a function
body: <p>I have this js code:</p>
  <pre><code>toolFilters.filter('dateAccordingToTimeZone', function($filter) {
      // Gets the number of milliseconds pass from 1970 and convert it to time according to given timezone, currently
      // supported “Asia/Jerusalem” and “America/Los_Angeles”
      return function(milliSeconds, timeZoneId) {
          if (milliSeconds == 0) {
              return &quot;&quot;;
          }
  
          return moment().tz(milliSeconds, timeZoneId).format('MMM d, y H:mm:ss z');  // 5am PDT
  
      };
  })
  </code></pre>
  <p>and this html</p>
  <pre><code>&lt;script src=&quot;bower_components/moment/moment.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>after installing via bower</p>
  <p>but i get this error:</p>
  <pre><code>VM9216:1 Uncaught TypeError: moment(...).tz is not a function
      at eval (eval at &lt;anonymous&gt; (filters.js:31), &lt;anonymous&gt;:1:10)
      at filters.js:31
      at fn (eval at compile (angular.js:15551), &lt;anonymous&gt;:4:485)
      at regularInterceptedExpression (angular.js:16658)
      at expressionInputsWatch (angular.js:16579)
  </code></pre>
  <p>how can i fix this?</p>
  <p>as I based on the <a href="https://momentjs.com/docs/" rel="nofollow noreferrer">official doc</a></p>
  <p>just without the &quot;require&quot; as I use native js</p>
  
  
      moment().format();