diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-04-18 09:29:38 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-04-18 09:29:38 +0000 |
commit | d696272192e69a7c7c48fd8686886d3c00b1d40c (patch) | |
tree | 47c08cd3cc9487450ae7f5f3f9f75ee4d390cc05 /libsylph/imap.c | |
parent | f7544bcd10599ba3204bd483b398df342f15e7d1 (diff) |
made workaround for 64-bit time_t on win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3391 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r-- | libsylph/imap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c index 4c26e04b..9f3f2347 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -4275,14 +4275,15 @@ static gint imap_cmd_fetch(IMAPSession *session, guint32 uid, return ok; } -static void imap_get_date_time(gchar *buf, size_t len, time_t timer) +static void imap_get_date_time(gchar *buf, size_t len, stime_t timer) { static gchar monthstr[] = "JanFebMarAprMayJunJulAugSepOctNovDec"; struct tm *lt; gchar date_time[64]; gchar tz[6]; + time_t timer_ = timer; - lt = localtime(&timer); + lt = localtime(&timer_); if (lt && lt->tm_mon >= 0 && lt->tm_mon < 12) { strftime(date_time, sizeof(date_time), "%d-___-%Y %H:%M:%S", lt); |