Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13669
Modified Files:
Tag: Release_0_9_5_stable
readris.c
Log Message:
fix RP date output for RIS format
Index: readris.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/readris.c,v
retrieving revision 1.12.2.1
retrieving revision 1.12.2.2
diff -u -U2 -r1.12.2.1 -r1.12.2.2
--- readris.c 15 Apr 2005 22:45:08 -0000 1.12.2.1
+++ readris.c 8 May 2005 00:59:47 -0000 1.12.2.2
@@ -629,6 +629,8 @@
if (yeardigits == 2) {
+ /* this is currently only used by the weird RIS output */
+ /* the required format is ON REQUEST (MM/DD/YY) */
sprintf(year, "%04d", tm_ptr->tm_year + 1900);
- sprintf(datestring, "%s-%02d-%02d", year+2, tm_ptr->tm_mon + 1, tm_ptr->tm_mday);
+ sprintf(datestring, "%02d/%02d/%s", tm_ptr->tm_mon + 1, tm_ptr->tm_mday, year+2);
}
else {
|