ajax.php
changeset 1081 745200a9cc2a
parent 1068 4bcefa85649c
child 1103 90225c988124
--- a/ajax.php	Wed Aug 19 01:28:47 2009 -0400
+++ b/ajax.php	Thu Aug 20 20:01:55 2009 -0400
@@ -2,8 +2,7 @@
 
 /*
  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
- * Version 1.1.6 (Caoineag beta 1)
- * Copyright (C) 2006-2008 Dan Fuhry
+ * Copyright (C) 2006-2009 Dan Fuhry
  *
  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@@ -96,7 +95,7 @@
         $row =& $draft_row;
         $return['have_draft'] = true;
         $return['draft_author'] = $row['author'];
-        $return['draft_time'] = enano_date('d M Y h:i a', intval($row['time_id']));
+        $return['draft_time'] = enano_date(ED_DATE | ED_TIME, intval($row['time_id']));
         if ( isset($_GET['get_draft']) && @$_GET['get_draft'] === '1' )
         {
           $return['src'] = $row['page_text'];
@@ -286,7 +285,7 @@
           $return = array(
             'mode' => 'obsolete',
             'author' => $row['author'],
-            'date_string' => enano_date('d M Y h:i a', $row['time_id']),
+            'date_string' => enano_date(ED_DATE | ED_TIME, $row['time_id']),
             'time' => $row['time_id'] // time() ???
             );
           echo enano_json_encode($return);