diff options
author | Mark McLoughlin <mark@skynet.ie> | 2003-09-03 15:23:51 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@src.gnome.org> | 2003-09-03 15:23:51 +0000 |
commit | c6524bf2f8e38793f17ef0b00da1c4ee5dfa5d28 (patch) | |
tree | c18488bfdc06fd1085b59b7979bbc2232914be3d | |
parent | 443f99f6c09d9c5662cb652b5d01346ca0eda474 (diff) | |
download | gnome-desktop-c6524bf2f8e38793f17ef0b00da1c4ee5dfa5d28.tar.gz |
Patch from Young-Ho, Cha <ganadist@chollian.net> in bug #121329.
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.
-rw-r--r-- | gnome-about/ChangeLog | 8 | ||||
-rw-r--r-- | gnome-about/gnome-about.c | 2 |
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); |