title: Firebase returning incorrect values - ionic / angular2
body: <p>I am trying to retrieve some data from a firebase database, the variable in question is a date. When I store the date, it stores correctly, with the correct date - but when I retrieve the date it always comes back with both of these dates at the same time:</p>
  
  <pre><code>{"date":{"day":"Fri Jul 21 2017 12:00:00 GMT-0400 (EDT)"},"reserved":{"appointment":["1:00 
              PM","10:00 AM","2:00 PM","4:30 PM","5:30 PM","6:30 PM"]}}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{"date":{"day":"Fri Jul 14 2017 12:00:00 GMT-0400 (EDT)"},"reserved":{"appointment":["1:00 
              PM","10:00 AM","2:00 PM"]}}
  </code></pre>
  
  <p>The <code>day</code> variable (the date) is either <code>Jul 14</code> or <code>Jul 21</code>. However, in my database I don't have any items with those values stored. Here is what my database looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/VJLmv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VJLmv.png" alt="enter image description here"></a></p>
  
  <p>As you can see all of the <code>day</code> variables have <code>Jul 26</code> <strong>NOT</strong> <code>Jul 14</code>/<code>Jul 21</code></p>
  
  <p>Firebase is also making up the appointments too, all of the times in the <code>appointment</code> are seemingly coming from nowhere.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>My firebase query looks like this - it is messing up in a very basic spot.</p>
  
  <pre><code>this.items = this.af.list('/appointments/' + this.username);
  this.items.subscribe(items =&gt; items.forEach(item =&gt; {
    console.log(JSON.stringify(item));
    console.log(item.date.day);
  </code></pre>
  
  <p>It gets the two incorrect dates in the <code>forEach</code>.</p>