gnumeric r16721 - trunk/plugins/fn-date
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16721 - trunk/plugins/fn-date
- Date: Thu, 24 Jul 2008 00:16:48 +0000 (UTC)
Author: mortenw
Date: Thu Jul 24 00:16:48 2008
New Revision: 16721
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16721&view=rev
Log:
2008-07-23 Morten Welinder <terra gnome org>
* functions.c (gnumeric_date): Bring out the brown bag.
Modified:
trunk/plugins/fn-date/ChangeLog
trunk/plugins/fn-date/functions.c
Modified: trunk/plugins/fn-date/functions.c
==============================================================================
--- trunk/plugins/fn-date/functions.c (original)
+++ trunk/plugins/fn-date/functions.c Thu Jul 24 00:16:48 2008
@@ -145,8 +145,8 @@
g_date_clear (&date, 1);
g_date_set_dmy (&date, 1, 1, (int)year);
- gnm_date_add_months (&date, (int)month);
- gnm_date_add_days (&date, (int)day);
+ gnm_date_add_months (&date, (int)month - 1);
+ gnm_date_add_days (&date, (int)day - 1);
if (!g_date_valid (&date) ||
g_date_get_year (&date) < gnm_date_convention_base (conv) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]