title: Deprecation warning when using moment.js
body: <p>I am using moment.js and moment-timezone.js for date time calculations in my code.
  After a while (so this wasn't a problem in a first place) I have started getting warning message saying this:</p>
  
  <blockquote>
    <p>vendor.js:50531 Deprecation warning: value provided is not in a
    recognized ISO format. moment construction falls back to js Date(),
    which is not reliable across all browsers and versions. Non ISO date
    formats are discouraged and will be removed in an upcoming major
    release. Please refer to
    <a href="http://momentjs.com/guides/#/warnings/js-date/" rel="nofollow noreferrer">http://momentjs.com/guides/#/warnings/js-date/</a> for more info.
    Arguments:  [0] _isAMomentObject: true, _isUTC: false, _useUTC: false,
    _l: undefined, _i: , _f: , _strict: undefined, _locale: [object Object] Error
        at Function.createFromInputFallback (<a href="http://localhost:8001/public/js/vendor.js:50558:98" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:50558:98</a>)
        at configFromString (<a href="http://localhost:8001/public/js/vendor.js:52297:32" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:52297:32</a>)
        at configFromInput (<a href="http://localhost:8001/public/js/vendor.js:52657:13" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:52657:13</a>)
        at prepareConfig (<a href="http://localhost:8001/public/js/vendor.js:52640:13" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:52640:13</a>)
        at createFromConfig (<a href="http://localhost:8001/public/js/vendor.js:52607:44" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:52607:44</a>)
        at createLocalOrUTC (<a href="http://localhost:8001/public/js/vendor.js:52694:16" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:52694:16</a>)
        at local__createLocal (<a href="http://localhost:8001/public/js/vendor.js:52698:16" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:52698:16</a>)
        at utils_hooks__hooks (<a href="http://localhost:8001/public/js/vendor.js:50265:29" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:50265:29</a>)
        at new CalenderCtrl (<a href="http://localhost:8001/public/js/vendor.js:111047:18" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:111047:18</a>)
        at Object.invoke (<a href="http://localhost:8001/public/js/vendor.js:17317:19" rel="nofollow noreferrer">http://localhost:8001/public/js/vendor.js:17317:19</a>)</p>
  </blockquote>
  
  <p>I have no clue what this means, even after searching thorough moment.js docs.</p>
  
  <p>This is a part of code where I use moment.js:</p>
  
  <pre><code>convertSelectedTimeZoneToClients() {
          let timeZoneInfo = {
              usersTimeZone: this.$rootScope.mtz.tz.guess(),
              utcOffset: this.formData.timeZone.offset,
              selectedDateTime: this.toJSONLocal(this.formData.sessionDate) + " " + this.formData.sessionTime 
          };
  
          let utcTime  = this.$rootScope.mtz.utc(timeZoneInfo.selectedDateTime).utcOffset(timeZoneInfo.utcOffset).format("YYYY-MM-DD HH:mm");
          let formatedUtcTime = this.$rootScope.mtz.utc(utcTime).toDate();
          let localTime = this.$rootScope.mtz(formatedUtcTime).format("YYYY-MM-DD HH:mm");
          this.$scope.clientDateTimeZone = localTime;
  }
  </code></pre>
  
  <p>Does somebody sees some potential problem that can cause this warning.
  The only thing I can think of is that 'YYYY-MM-DD HH:mm' is not ISO format, but I need to use this format anyhow.</p>