r23184 - gnucash/trunk/src/libqof/qof - Make gnc_g_date_time_new_from_unix_local() function known in header.

Christian Stimming cstim at code.gnucash.org
Fri Sep 20 17:09:33 EDT 2013


Author: cstim
Date: 2013-09-20 17:09:33 -0400 (Fri, 20 Sep 2013)
New Revision: 23184
Trac: http://svn.gnucash.org/trac/changeset/23184

Modified:
   gnucash/trunk/src/libqof/qof/gnc-date.c
   gnucash/trunk/src/libqof/qof/gnc-date.h
Log:
Make gnc_g_date_time_new_from_unix_local() function known in header.

Modified: gnucash/trunk/src/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-date.c	2013-09-20 21:09:21 UTC (rev 23183)
+++ gnucash/trunk/src/libqof/qof/gnc-date.c	2013-09-20 21:09:33 UTC (rev 23184)
@@ -189,7 +189,7 @@
     return gdt;
 }
 
-static GDateTime*
+GDateTime*
 gnc_g_date_time_new_from_unix_local (time64 time)
 {
 #ifndef G_OS_WIN32

Modified: gnucash/trunk/src/libqof/qof/gnc-date.h
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-date.h	2013-09-20 21:09:21 UTC (rev 23183)
+++ gnucash/trunk/src/libqof/qof/gnc-date.h	2013-09-20 21:09:33 UTC (rev 23184)
@@ -234,6 +234,12 @@
  */
 gdouble gnc_difftime (const time64 secs1, const time64 secs2);
 
+/** Wrapper for g_date_time_new_from_unix_local() that takes special care on
+ * windows to take the local timezone into account. On unix, it just calles the
+ * g_date function. */
+GDateTime*
+gnc_g_date_time_new_from_unix_local (time64 time);
+
 /** \brief free a struct tm* created with gnc_localtime() or gnc_gmtime()
  * \param time: The struct tm* to be freed.
  */



More information about the gnucash-changes mailing list