r22776 - gnucash/trunk/src/libqof/qof - Fix gnc-cdate format to match that of POSIX cdate

John Ralls jralls at code.gnucash.org
Tue Feb 12 18:09:54 EST 2013


Author: jralls
Date: 2013-02-12 18:09:54 -0500 (Tue, 12 Feb 2013)
New Revision: 22776
Trac: http://svn.gnucash.org/trac/changeset/22776

Modified:
   gnucash/trunk/src/libqof/qof/gnc-date.c
   gnucash/trunk/src/libqof/qof/test/test-gnc-date.c
Log:
Fix gnc-cdate format to match that of POSIX cdate

Modified: gnucash/trunk/src/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-date.c	2013-02-12 16:07:35 UTC (rev 22775)
+++ gnucash/trunk/src/libqof/qof/gnc-date.c	2013-02-12 23:09:54 UTC (rev 22776)
@@ -432,7 +432,7 @@
 gnc_ctime (const time64 *secs)
 {
      GDateTime *gdt = gnc_g_date_time_new_from_unix_local (*secs);
-     gchar *string = g_date_time_format (gdt, "%a %b %H:%M:%S %Y");
+     gchar *string = g_date_time_format (gdt, "%a %b %e %H:%M:%S %Y\n");
      g_date_time_unref (gdt);
      return string;
 }

Modified: gnucash/trunk/src/libqof/qof/test/test-gnc-date.c
===================================================================
--- gnucash/trunk/src/libqof/qof/test/test-gnc-date.c	2013-02-12 16:07:35 UTC (rev 22775)
+++ gnucash/trunk/src/libqof/qof/test/test-gnc-date.c	2013-02-12 23:09:54 UTC (rev 22776)
@@ -290,7 +290,7 @@
 	GDateTime *gdt = gncdt.new_from_unix_local (secs[ind]);
 	gchar* datestr = gnc_ctime (&secs[ind]);
         g_assert_cmpstr (datestr, ==,
-	                 g_date_time_format (gdt, "%a %b %H:%M:%S %Y"));
+	                 g_date_time_format (gdt, "%a %b %e %H:%M:%S %Y\n"));
 	g_date_time_unref (gdt);
 	g_free (datestr);
     }



More information about the gnucash-changes mailing list