summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnome-about/ChangeLog8
-rw-r--r--gnome-about/gnome-about.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/gnome-about/ChangeLog b/gnome-about/ChangeLog
index e454eb48..eb4b48f7 100644
--- a/gnome-about/ChangeLog
+++ b/gnome-about/ChangeLog
@@ -1,3 +1,11 @@
+2003-09-03 Mark McLoughlin <mark@skynet.ie>
+
+ Patch from Young-Ho, Cha <ganadist@chollian.net> in
+ bug #121329.
+
+ * gnome-about.c: (create_date_string): fix off-by-one
+ error with the month. tm_mon begins at zero.
+
==================== 2.3.90 ====================
==================== 2.3.7 ====================
diff --git a/gnome-about/gnome-about.c b/gnome-about/gnome-about.c
index 0cbd89e3..2badd9cc 100644
--- a/gnome-about/gnome-about.c
+++ b/gnome-about/gnome-about.c
@@ -754,7 +754,7 @@ create_date_string (const char *value)
if (!strptime (value, "%Y-%m-%d", &tm)) {
return NULL;
}
- g_date_set_dmy (date, tm.tm_mday, tm.tm_mon, 1900 + tm.tm_year);
+ g_date_set_dmy (date, tm.tm_mday, 1 + tm.tm_mon, 1900 + tm.tm_year);
result = g_new0 (char, 20);
g_date_strftime (result, 20, "%x", date);
g_date_free (date);