update page model to use entry datetime
authorDylan Lloyd <dylan@dylansserver.com>
Thu, 2 Jan 2014 22:28:36 +0000 (22:28 +0000)
committerDylan Lloyd <dylan@dylansserver.com>
Thu, 2 Jan 2014 22:28:36 +0000 (22:28 +0000)
model/page.php

index b4c5577..220c604 100644 (file)
@@ -50,7 +50,7 @@ class page extends model {
       $entry['year_posted'] = $date_posted[0];
       $entry['month_posted'] = $date_posted[1];
       $entry['datetime_posted'] = explode(' ', $date_posted[2]);
-      $entry['day_posted'] = $entry['date_posted'][0];
+      $entry['day_posted'] = $entry['datetime_posted'][0];
       $this->notes[$row] = $entry;
     }
   }