Update of /cvsroot/webnotes/webnotes/core
In directory usw-pr-cvs1:/tmp/cvs-serv9275/core
Modified Files:
note_api.php
Log Message:
Fix the Submit time stamp problem
Submitting a note on the 06-SEP-2002 shows up as Dec, 09 2001 06:00.
Index: note_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- note_api.php 9 Sep 2002 22:30:21 -0000 1.7
+++ note_api.php 9 Sep 2002 22:56:56 -0000 1.8
@@ -108,7 +108,10 @@
$info['id'] = db_unprepare_string( $v_id );
$info['email'] = db_unprepare_string( $v_email );
$info['note'] = nl2br( string_preserve_spaces ( db_unprepare_string( $v_note ) ) );
- $info['date'] = date( 'M, d Y H:i', sql_to_unix_time( $v_date_submitted ) );
+
+ #Removed by Remon tell we fix the problem in the sql_to_unix_time
+ #$info['date'] = date( 'M, d Y H:i', sql_to_unix_time( $v_date_submitted ) );
+ $info['date'] = $v_date_submitted;
theme_notes_echo( $p_page_name, $p_url, $info );
}
|