diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-01 15:16:26 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-01 15:16:26 +0100 |
commit | 4273158e2bd219602e502d593040cccb234d4805 (patch) | |
tree | 57f905ee352b52df24e55bb165970ba62e818637 | |
parent | 85ef57f94436f23447c0d8603b52977824381854 (diff) |
Oops. rt_mon start at 0=Jan, causing off-by-a-month timestamps shown to the
user. Temporary work-around: set timezone to +720 or so. :-P
-rw-r--r-- | protocols/nogaim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c index fca8b302..98325c89 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -1193,7 +1193,7 @@ static char *format_timestamp( irc_t *irc, time_t msg_ts ) else return g_strdup_printf( "\x02[\x02\x02\x02%04d-%02d-%02d " "%02d:%02d:%02d\x02]\x02 ", - msg.tm_year + 1900, msg.tm_mon, msg.tm_mday, + msg.tm_year + 1900, msg.tm_mon + 1, msg.tm_mday, msg.tm_hour, msg.tm_min, msg.tm_sec ); } |